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

Unified Diff: media/filters/audio_renderer_impl.h

Issue 10669022: Add status parameter to DemuxerStream::ReadCB (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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/audio_renderer_impl.h
diff --git a/media/filters/audio_renderer_impl.h b/media/filters/audio_renderer_impl.h
index efa59e72af229331d3bb0a4afef15ed0e9e9ce46..b0f0e464a2ad97d30ae8a8721a97786c25d5e5d9 100644
--- a/media/filters/audio_renderer_impl.h
+++ b/media/filters/audio_renderer_impl.h
@@ -72,7 +72,13 @@ class MEDIA_EXPORT AudioRendererImpl
FRIEND_TEST_ALL_PREFIXES(AudioRendererImplTest, Underflow_EndOfStream);
// Callback from the audio decoder delivering decoded audio samples.
- void DecodedAudioReady(scoped_refptr<Buffer> buffer);
+ void DecodedAudioReady(AudioDecoder::Status status,
+ const scoped_refptr<Buffer>& buffer);
+
+ // Helper functions for AudioDecoder::Status values passed to
+ // DecodedAudioReady().
+ void HandleDecodeError();
+ void HandleAbortedRead();
// Fills the given buffer with audio data by delegating to its |algorithm_|.
// FillBuffer() also takes care of updating the clock. Returns the number of

Powered by Google App Engine
This is Rietveld 408576698