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

Unified Diff: media/filters/decoder_stream.cc

Issue 2543623003: media: Allow config change between clear and encrypted streams (Closed)
Patch Set: media: Allow config change between clear and encrypted streams Created 3 years, 11 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 a177c67935e3f1e62293009bb8be4fcdfc710ea9..db424e3ab91e41dd2a33b59c7e28e9e814195a23 100644
--- a/media/filters/decoder_stream.cc
+++ b/media/filters/decoder_stream.cc
@@ -205,7 +205,8 @@ void DecoderStream<StreamType>::Reset(const base::Closure& closure) {
template <DemuxerStream::Type StreamType>
bool DecoderStream<StreamType>::CanReadWithoutStalling() const {
DCHECK(task_runner_->BelongsToCurrentThread());
- return !ready_outputs_.empty() || decoder_->CanReadWithoutStalling();
+ return !ready_outputs_.empty() ||
+ (decoder_ && decoder_->CanReadWithoutStalling());
}
template <>

Powered by Google App Engine
This is Rietveld 408576698