Index: media/base/pipeline_impl.cc |
=================================================================== |
--- media/base/pipeline_impl.cc (revision 68165) |
+++ media/base/pipeline_impl.cc (working copy) |
@@ -1051,12 +1051,15 @@ |
return false; |
scoped_refptr<VideoDecoder> video_decoder; |
- filter_collection_->SelectVideoDecoder(&video_decoder); |
+ int codec_id; |
+ stream->media_format().GetAsInteger(MediaFormat::kFFmpegCodecID, &codec_id); |
+ filter_collection_->SelectVideoDecoder(&video_decoder, codec_id); |
if (!video_decoder) { |
SetError(PIPELINE_ERROR_REQUIRED_FILTER_MISSING); |
return false; |
} |
+ VLOG(1) << "video decoder selected: " << video_decoder->filter_name(); |
if (!PrepareFilter(video_decoder)) |
return false; |