diff options
Diffstat (limited to 'chromium/media/filters/source_buffer_stream.h')
-rw-r--r-- | chromium/media/filters/source_buffer_stream.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/chromium/media/filters/source_buffer_stream.h b/chromium/media/filters/source_buffer_stream.h index a50e7c36df4..590d88d85cb 100644 --- a/chromium/media/filters/source_buffer_stream.h +++ b/chromium/media/filters/source_buffer_stream.h @@ -164,11 +164,17 @@ class MEDIA_EXPORT SourceBufferStream { // Notifies this object that the audio config has changed and buffers in // future Append() calls should be associated with this new config. - bool UpdateAudioConfig(const AudioDecoderConfig& config); + // If the codec is allowed to change, the caller should set + // |allow_codec_change| to true. + bool UpdateAudioConfig(const AudioDecoderConfig& config, + bool allow_codec_change); // Notifies this object that the video config has changed and buffers in // future Append() calls should be associated with this new config. - bool UpdateVideoConfig(const VideoDecoderConfig& config); + // If the codec is allowed to change, the caller should set + // |allow_codec_change| to true. + bool UpdateVideoConfig(const VideoDecoderConfig& config, + bool allow_codec_change); // Returns the largest distance between two adjacent buffers in this stream, // or an estimate if no two adjacent buffers have been appended to the stream |