diff options
author | acolwell@chromium.org <acolwell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-26 16:38:03 +0000 |
---|---|---|
committer | acolwell@chromium.org <acolwell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-26 16:38:03 +0000 |
commit | a93866519172cc8993583d9116ce16eec01d532b (patch) | |
tree | e617d768783948cabd3e0363cfa6bfe45a6b4ee0 /media/base/audio_decoder_config.h | |
parent | 2b2d9393845b8bb60f843d14ab0b59c4bc3949db (diff) | |
download | chromium_src-a93866519172cc8993583d9116ce16eec01d532b.zip chromium_src-a93866519172cc8993583d9116ce16eec01d532b.tar.gz chromium_src-a93866519172cc8993583d9116ce16eec01d532b.tar.bz2 |
Add config change handling to SourceBufferStream & ChunkDemuxer
BUG=122913
TEST=None
Review URL: https://chromiumcodereview.appspot.com/10696182
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148563 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/audio_decoder_config.h')
-rw-r--r-- | media/base/audio_decoder_config.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/media/base/audio_decoder_config.h b/media/base/audio_decoder_config.h index 6e58c5b..e2309d5 100644 --- a/media/base/audio_decoder_config.h +++ b/media/base/audio_decoder_config.h @@ -65,6 +65,10 @@ class MEDIA_EXPORT AudioDecoderConfig { // otherwise. bool IsValidConfig() const; + // Returns true if all fields in |config| match this config. + // Note: The contents of |extra_data_| are compared not the raw pointers. + bool Matches(const AudioDecoderConfig& config) const; + AudioCodec codec() const; int bits_per_channel() const; ChannelLayout channel_layout() const; |