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

Unified Diff: content/renderer/media/audio_device.cc

Issue 10054011: Send kStopMark from AudioOutputController to stop AudioThread in renderer (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1025/src/
Patch Set: Created 8 years, 8 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 | media/audio/audio_output_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/audio_device.cc
===================================================================
--- content/renderer/media/audio_device.cc (revision 131586)
+++ content/renderer/media/audio_device.cc (working copy)
@@ -299,7 +299,8 @@
memset(shared_memory.memory(), 0, memory_length_);
media::SetActualDataSizeInBytes(&shared_memory, memory_length_, 0);
continue;
- } else if (pending_data < 0) {
+ } else if (pending_data == media::AudioOutputController::kStopMark ||
+ pending_data < 0) {
break;
}
« no previous file with comments | « no previous file | media/audio/audio_output_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698