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

Unified Diff: media/filters/decoder_stream.h

Issue 297553002: Add callback in VideoDecoder and AudioDecoder to return decoded frames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/decoder_stream.h
diff --git a/media/filters/decoder_stream.h b/media/filters/decoder_stream.h
index 2856f8536e2cf7f931819f4f09a1fc2841ce5c9d..d180f27fc53deae4ced2fbee4a6ef582badc44d6 100644
--- a/media/filters/decoder_stream.h
+++ b/media/filters/decoder_stream.h
@@ -141,9 +141,10 @@ class MEDIA_EXPORT DecoderStream {
void FlushDecoder();
// Callback for Decoder::Decode().
- void OnDecodeOutputReady(int buffer_size,
- DecoderStatus status,
- const scoped_refptr<Output>& output);
+ void OnDecodeDone(int buffer_size, bool end_of_stream, DecoderStatus status);
+
+ // Output callback passed to Decoder::Initialize().
+ void OnDecodeOutputReady(const scoped_refptr<Output>& output);
// Reads a buffer from |stream_| and returns the result via OnBufferReady().
void ReadFromDemuxerStream();

Powered by Google App Engine
This is Rietveld 408576698