Index: media/base/android/video_decoder_job.cc |
diff --git a/media/base/android/video_decoder_job.cc b/media/base/android/video_decoder_job.cc |
index 02b41c4b5c4272bd4c3e6f8a1e8dda3e904c5dc1..75124e7d0d7340896ebd91f0ddbc2ebf5996ff38 100644 |
--- a/media/base/android/video_decoder_job.cc |
+++ b/media/base/android/video_decoder_job.cc |
@@ -30,9 +30,9 @@ VideoDecoderJob* VideoDecoderJob::Create(const VideoCodec video_codec, |
jobject surface, |
jobject media_crypto, |
const base::Closure& request_data_cb) { |
- scoped_ptr<VideoCodecBridge> codec( |
- VideoCodecBridge::Create(video_codec, is_secure)); |
- if (codec && codec->Start(video_codec, size, surface, media_crypto)) |
+ scoped_ptr<VideoCodecBridge> codec(VideoCodecBridge::CreateDecoder( |
+ video_codec, is_secure, size, surface, media_crypto)); |
+ if (codec) |
return new VideoDecoderJob(codec.Pass(), request_data_cb); |
LOG(ERROR) << "Failed to create VideoDecoderJob."; |