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

Unified Diff: media/filters/gpu_video_decoder.cc

Issue 10910293: Add is_encrypted() in VideoDecoderConfig. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resolve comments. Created 8 years, 3 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/gpu_video_decoder.cc
diff --git a/media/filters/gpu_video_decoder.cc b/media/filters/gpu_video_decoder.cc
index 149631d03611f0a1c19817b4075c43b7318947c0..6f950ccbd2dcd904097b99b6e70a58d147de0732 100644
--- a/media/filters/gpu_video_decoder.cc
+++ b/media/filters/gpu_video_decoder.cc
@@ -128,8 +128,9 @@ void GpuVideoDecoder::Initialize(const scoped_refptr<DemuxerStream>& stream,
// TODO(scherkus): this check should go in Pipeline prior to creating
// decoder objects.
const VideoDecoderConfig& config = stream->video_decoder_config();
- if (!config.IsValidConfig()) {
- DLOG(ERROR) << "Invalid video stream - " << config.AsHumanReadableString();
+ if (!config.IsValidConfig() || config.is_encrypted()) {
+ DLOG(ERROR) << "Unsupported video stream - "
+ << config.AsHumanReadableString();
status_cb.Run(PIPELINE_ERROR_DECODE);
return;
}

Powered by Google App Engine
This is Rietveld 408576698