Skip to content

Commit

Permalink
MSE: Report decode error if FrameProcessor's append to track buffer f…
Browse files Browse the repository at this point in the history
…ails

LegacyFrameProcessor reported decode error if ChunkDemuxerStream
(really, if SourceBufferStream)::Append() returned false. This could be
for a variety of reasons, mostly sanity checking the timestamps.
The new FrameProcessor ignored the ChunkDemuxerStream::Append() result
and assumed success, hiding potential issues. This change makes
FrameProcessor report decode error if CDS::Append() fails.

R=acolwell@chromium.org
TEST=no media_unittest or MSE layout test regression locally on linux

Review URL: https://codereview.chromium.org/324243002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276375 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
wolenetz@chromium.org committed Jun 11, 2014
1 parent dc5442a commit ac59ea8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion media/filters/frame_processor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ac59ea8

Please sign in to comment.