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

Unified Diff: media/filters/decoder_stream.cc

Issue 208263018: Add SupportsConfigChanges() to DemuxerStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@audioconverterchunk
Patch Set: Make comment not specific to video_decoder_config(). Created 6 years, 9 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/decoder_stream.cc
diff --git a/media/filters/decoder_stream.cc b/media/filters/decoder_stream.cc
index 0badff2832d5d134f5eb8c717419fa81ff9eb6aa..3d62335aad8c76c9596fbdaaecb16fcb80435dfb 100644
--- a/media/filters/decoder_stream.cc
+++ b/media/filters/decoder_stream.cc
@@ -370,6 +370,7 @@ void DecoderStream<StreamType>::OnBufferReady(
state_ = STATE_NORMAL;
if (status == DemuxerStream::kConfigChanged) {
+ DCHECK(stream_->SupportsConfigChanges());
scherkus (not reviewing) 2014/03/25 22:16:47 \o/
state_ = STATE_FLUSHING_DECODER;
if (!reset_cb_.is_null()) {
AbortRead();

Powered by Google App Engine
This is Rietveld 408576698