Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Unified Diff: media/audio/mac/audio_unified_mac.cc

Issue 10963062: AudioHardwareUnifiedStream::Stop() must not clear |source_| before calling AudioDeviceStop(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/mac/audio_unified_mac.cc
===================================================================
--- media/audio/mac/audio_unified_mac.cc (revision 158044)
+++ media/audio/mac/audio_unified_mac.cc (working copy)
@@ -278,14 +278,13 @@
if (!is_playing_)
return;
- source_ = NULL;
-
if (device_ != kAudioObjectUnknown) {
OSStatus result = AudioDeviceStop(device_, io_proc_id_);
OSSTATUS_DCHECK(result == noErr, result);
}
is_playing_ = false;
+ source_ = NULL;
}
void AudioHardwareUnifiedStream::SetVolume(double volume) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698