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

Unified Diff: media/filters/frame_processor.cc

Issue 324243002: MSE: Report decode error if FrameProcessor's append to track buffer fails (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/filters/frame_processor.cc
diff --git a/media/filters/frame_processor.cc b/media/filters/frame_processor.cc
index 93b176e9ae72e8e084e48648ab3d40c24065935b..6363ec7165811ba5f82477b8c02d9f7f351fc0d2 100644
--- a/media/filters/frame_processor.cc
+++ b/media/filters/frame_processor.cc
@@ -339,7 +339,10 @@ bool FrameProcessor::ProcessFrame(
// See http://crbug.com/371197.
StreamParser::BufferQueue buffer_to_append;
buffer_to_append.push_back(frame);
- track_buffer->stream()->Append(buffer_to_append);
+ if (!track_buffer->stream()->Append(buffer_to_append)) {
+ DVLOG(3) << __FUNCTION__ << ": Failure appending frame to stream";
+ return false;
+ }
// 19. Set last decode timestamp for track buffer to decode timestamp.
track_buffer->set_last_decode_timestamp(decode_timestamp);
« 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