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

Unified Diff: media/base/demuxer_stream.h

Issue 7867051: Introduce AudioDecoderConfig to migrate away from GetAVStream(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: samples_per_second Created 9 years, 3 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
« no previous file with comments | « media/base/audio_decoder_config.cc ('k') | media/base/filters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/demuxer_stream.h
diff --git a/media/base/demuxer_stream.h b/media/base/demuxer_stream.h
index 525611561ba68d4209a9665416eba7c7c83b9912..e81423e8069bd3f4abaf902138c167641177d4c2 100644
--- a/media/base/demuxer_stream.h
+++ b/media/base/demuxer_stream.h
@@ -13,6 +13,7 @@ struct AVStream;
namespace media {
+class AudioDecoderConfig;
class Buffer;
class MEDIA_EXPORT DemuxerStream
@@ -34,6 +35,10 @@ class MEDIA_EXPORT DemuxerStream
// Returns an |AVStream*| if supported, or NULL.
virtual AVStream* GetAVStream();
+ // Returns the audio decoder configuration. It is an error to call this method
+ // if type() != AUDIO.
+ virtual const AudioDecoderConfig& audio_decoder_config() = 0;
+
// Returns the type of stream.
virtual Type type() = 0;
« no previous file with comments | « media/base/audio_decoder_config.cc ('k') | media/base/filters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698