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

Unified Diff: webkit/media/crypto/ppapi/cdm_video_decoder.h

Issue 11929015: Tighten up media::DecoderBuffer API contract for end of stream buffers (round 2). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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: webkit/media/crypto/ppapi/cdm_video_decoder.h
diff --git a/webkit/media/crypto/ppapi/cdm_video_decoder.h b/webkit/media/crypto/ppapi/cdm_video_decoder.h
index aec1f610f7362144c41afb5f8802573933e4fec6..9de1be70a55114b66ea8beef15b4e45548c13869 100644
--- a/webkit/media/crypto/ppapi/cdm_video_decoder.h
+++ b/webkit/media/crypto/ppapi/cdm_video_decoder.h
@@ -23,6 +23,9 @@ class CdmVideoDecoder {
// returns |cdm::kSuccess| when an output frame is available. Returns
// |cdm::kNeedMoreData| when |compressed_frame| does not produce an output
// frame. Returns |cdm::kDecodeError| when decoding fails.
+ //
+ // A null |compressed_frame| is will attempt to flush the decoder of any
+ // remaining frames. |compressed_frame_size| and |timestamp| are ignored.
virtual cdm::Status DecodeFrame(const uint8_t* compressed_frame,
int32_t compressed_frame_size,
int64_t timestamp,

Powered by Google App Engine
This is Rietveld 408576698