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

Unified Diff: media/filters/video_frame_stream.cc

Issue 123213006: Make VideoDecoder use (kAborted, NULL) to signify an aborted decode, instead of (kOk, NULL). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Handle aborted read status in VideoFrameStream. Created 6 years, 12 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_frame_stream.cc
diff --git a/media/filters/video_frame_stream.cc b/media/filters/video_frame_stream.cc
index 0c7ccf367992165c1f5cbf62ec028b3df752503d..77900974c1933b1e72d8b4a53fe6b489de9168f3 100644
--- a/media/filters/video_frame_stream.cc
+++ b/media/filters/video_frame_stream.cc
@@ -262,6 +262,12 @@ void VideoFrameStream::OnFrameReady(int buffer_size,
return;
}
+ if (status == VideoDecoder::kAborted) {
+ DCHECK(!frame.get());
+ AbortRead();
+ return;
+ }
xhwang 2014/01/03 01:05:58 VideoDecoder::kAborted can only be a result of a p
+
// Any successful decode counts!
if (buffer_size > 0) {
PipelineStatistics statistics;

Powered by Google App Engine
This is Rietveld 408576698