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

Unified Diff: media/filters/audio_renderer_base.cc

Issue 164447: Merge 22654 - Renderer busy looping after video (with sound) or audio ends... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/src/
Patch Set: Created 11 years, 4 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/filters/audio_renderer_base_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/audio_renderer_base.cc
===================================================================
--- media/filters/audio_renderer_base.cc (revision 23263)
+++ media/filters/audio_renderer_base.cc (working copy)
@@ -120,8 +120,11 @@
DCHECK_GT(pending_reads_, 0u);
--pending_reads_;
- // Note: Calling this may schedule more reads.
- algorithm_->EnqueueBuffer(buffer_in);
+ // Don't enqueue an end-of-stream buffer because it has no data.
+ if (!buffer_in->IsEndOfStream()) {
+ // Note: Calling this may schedule more reads.
+ algorithm_->EnqueueBuffer(buffer_in);
+ }
// Check for our preroll complete condition.
if (state_ == kSeeking) {
Property changes on: media\filters\audio_renderer_base.cc
___________________________________________________________________
Modified: svn:mergeinfo
Merged /trunk/src/media/filters/audio_renderer_base.cc:r22654
« no previous file with comments | « no previous file | media/filters/audio_renderer_base_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698