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

Unified Diff: media/filters/video_renderer_base.cc

Issue 113611: Handle end of stream for media... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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
Index: media/filters/video_renderer_base.cc
===================================================================
--- media/filters/video_renderer_base.cc (revision 17376)
+++ media/filters/video_renderer_base.cc (working copy)
@@ -181,7 +181,10 @@
if (video_frame->IsDiscontinuous()) {
DiscardAllFrames();
}
- if (UpdateQueue(host_->GetPipelineStatus()->GetInterpolatedTime(),
+ // If this is not an end of stream frame, update the queue with it.
+ // An end of stream of frame has no data.
+ if (!video_frame->IsEndOfStream() &&
+ UpdateQueue(host_->GetPipelineStatus()->GetInterpolatedTime(),
video_frame)) {
request_repaint = preroll_complete_;
}

Powered by Google App Engine
This is Rietveld 408576698