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

Unified Diff: media/base/android/video_decoder_job.cc

Issue 74563002: AndroidVideoEncodeAccelerator is born! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years 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
« no previous file with comments | « media/base/android/media_decoder_job.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.";
« no previous file with comments | « media/base/android/media_decoder_job.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698