summaryrefslogtreecommitdiff
path: root/voice_engine/voe_base_impl.cc
diff options
context:
space:
mode:
authorxians@webrtc.org <xians@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2013-10-17 16:15:34 +0000
committerxians@webrtc.org <xians@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2013-10-17 16:15:34 +0000
commit3d553d4203f945029900c85c0e402e598fef4361 (patch)
tree458ba0e023567e283dfd8ccab32eb508a8e69dba /voice_engine/voe_base_impl.cc
parent51e010182b9947c9656f9e81a6a12f64a8e21788 (diff)
downloadwebrtc-3d553d4203f945029900c85c0e402e598fef4361.tar.gz
Check the number of playout channels instead of the send channels in StopPlayout()
BUG=2467 R=henrika@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2420004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@4989 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'voice_engine/voe_base_impl.cc')
-rw-r--r--voice_engine/voe_base_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/voice_engine/voe_base_impl.cc b/voice_engine/voe_base_impl.cc
index ab78f774..c76e06de 100644
--- a/voice_engine/voe_base_impl.cc
+++ b/voice_engine/voe_base_impl.cc
@@ -999,7 +999,7 @@ int32_t VoEBaseImpl::StopPlayout() {
VoEId(_shared->instance_id(), -1),
"VoEBaseImpl::StopPlayout()");
// Stop audio-device playing if no channel is playing out
- if (_shared->NumOfSendingChannels() == 0) {
+ if (_shared->NumOfPlayingChannels() == 0) {
if (_shared->audio_device()->StopPlayout() != 0) {
_shared->SetLastError(VE_CANNOT_STOP_PLAYOUT,
kTraceError,