From 1ab1c24bda1b30b57e040b3b077a001d095fcab3 Mon Sep 17 00:00:00 2001 From: "scherkus@chromium.org" Date: Wed, 21 Sep 2011 22:44:04 +0000 Subject: Introduce AudioDecoderConfig to migrate away from GetAVStream(). Instead add DemuxerStream::audio_decoder_config() to break FFmpegAudioDecoder's dependency on the AVCodecContext object maintained by FFmpegDemuxer. Review URL: http://codereview.chromium.org/7867051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102183 0039d316-1c4b-4281-b951-d872f2087c98 --- media/base/demuxer_stream.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'media/base/demuxer_stream.h') diff --git a/media/base/demuxer_stream.h b/media/base/demuxer_stream.h index 5256115..e81423e 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; -- cgit v1.1