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

Unified Diff: media/base/video_decoder.h

Issue 805193006: Fix VideoDecoderShim to return correct decode_id for all codecs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/base/video_decoder.h
diff --git a/media/base/video_decoder.h b/media/base/video_decoder.h
index d7e7a791de3d168668476cbdbd73aae22dd90ef4..b8b8fa71f71484ba84552d17ea0cf474f0460fe1 100644
--- a/media/base/video_decoder.h
+++ b/media/base/video_decoder.h
@@ -78,8 +78,9 @@ class MEDIA_EXPORT VideoDecoder {
// called again).
//
// After decoding is finished the decoder calls |output_cb| specified in
- // Initialize() for each decoded frame. |output_cb| may be called before or
- // after |decode_cb|.
+ // Initialize() for each decoded frame. In general |output_cb| may be called
+ // before or after |decode_cb|, but software decoders must always call
+ // |output_cb| before calling |decode_cb|.
xhwang 2015/01/15 21:35:10 Hmm, is there any reason why VideoDecoderShim can'
Sergey Ulanov 2015/01/15 22:59:20 PPB_VideoDecoder API needs to tell the plugin whic
xhwang 2015/01/15 23:41:47 Thanks for the info! But what exactly do you mean
//
// If |buffer| is an EOS buffer then the decoder must be flushed, i.e.
// |output_cb| must be called for each frame pending in the queue and

Powered by Google App Engine
This is Rietveld 408576698