diff options
author | Vasudevan Ramachandraiah <vasudevan.ramachandraiah@nokia.com> | 2010-09-02 17:29:07 -0500 |
---|---|---|
committer | hawcroft <derick.hawcroft@nokia.com> | 2010-09-03 08:48:16 +1000 |
commit | 0b14ed06942e6954d66167a9da1bc37f76497cc0 (patch) | |
tree | 4ef21c56599610b14f23fa79fd1e6dee8c04fdd9 /plugins/multimedia/symbian/mmf/audiosource/s60audiocapturesession.cpp | |
parent | 53d52091327ca633eabf9c2fd71feb043b5b7fb2 (diff) |
MOBILITY-1233 error fix
Diffstat (limited to 'plugins/multimedia/symbian/mmf/audiosource/s60audiocapturesession.cpp')
-rw-r--r-- | plugins/multimedia/symbian/mmf/audiosource/s60audiocapturesession.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/plugins/multimedia/symbian/mmf/audiosource/s60audiocapturesession.cpp b/plugins/multimedia/symbian/mmf/audiosource/s60audiocapturesession.cpp index 7ae302ae27..b5b7696b83 100644 --- a/plugins/multimedia/symbian/mmf/audiosource/s60audiocapturesession.cpp +++ b/plugins/multimedia/symbian/mmf/audiosource/s60audiocapturesession.cpp @@ -533,16 +533,19 @@ void S60AudioCaptureSession::applyAudioSettingsL() } CleanupStack::PopAndDestroy(&supportedSampleRates); - RArray<TUint> supportedChannels; - CleanupClosePushL(supportedChannels); - m_recorderUtility->GetSupportedNumberOfChannelsL(supportedChannels); - for (TInt l = 0; l < supportedChannels.Count(); l++ ) { - if (supportedChannels[l] == m_format.channels()) { - m_recorderUtility->SetDestinationNumberOfChannelsL(m_format.channels()); - break; + /* If requested channel setting is different than current one */ + if (m_recorderUtility->DestinationNumberOfChannelsL() != m_format.channels()) { + RArray<TUint> supportedChannels; + CleanupClosePushL(supportedChannels); + m_recorderUtility->GetSupportedNumberOfChannelsL(supportedChannels); + for (TInt l = 0; l < supportedChannels.Count(); l++ ) { + if (supportedChannels[l] == m_format.channels()) { + m_recorderUtility->SetDestinationNumberOfChannelsL(m_format.channels()); + break; + } } + CleanupStack::PopAndDestroy(&supportedChannels); } - CleanupStack::PopAndDestroy(&supportedChannels); } TFourCC S60AudioCaptureSession::determinePCMFormat() |