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

Unified Diff: content/renderer/media/capture_video_decoder.cc

Issue 8686010: <video> decode in hardware! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Drop INTRA/CONSTRAINED in profile, add missing 'virtual', add MEDIA_EXPORT, fix RemoveFilter loop Created 9 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
Index: content/renderer/media/capture_video_decoder.cc
diff --git a/content/renderer/media/capture_video_decoder.cc b/content/renderer/media/capture_video_decoder.cc
index 5d9ef9f4bfb707d000eb69eee42dfa7a6de0d6c7..3b0b358afedacfd62c4d521b914b743bde8aeebc 100644
--- a/content/renderer/media/capture_video_decoder.cc
+++ b/content/renderer/media/capture_video_decoder.cc
@@ -33,7 +33,7 @@ CaptureVideoDecoder::~CaptureVideoDecoder() {}
void CaptureVideoDecoder::Initialize(
media::DemuxerStream* demuxer_stream,
- const base::Closure& filter_callback,
+ const media::PipelineStatusCB& filter_callback,
const media::StatisticsCallback& stat_callback) {
message_loop_proxy_->PostTask(
FROM_HERE,
@@ -134,7 +134,7 @@ void CaptureVideoDecoder::OnDeviceInfoReceived(
void CaptureVideoDecoder::InitializeOnDecoderThread(
media::DemuxerStream* demuxer_stream,
- const base::Closure& filter_callback,
+ const media::PipelineStatusCB& filter_callback,
const media::StatisticsCallback& stat_callback) {
DVLOG(1) << "InitializeOnDecoderThread";
DCHECK(message_loop_proxy_->BelongsToCurrentThread());
@@ -142,7 +142,7 @@ void CaptureVideoDecoder::InitializeOnDecoderThread(
capture_engine_ = vc_manager_->AddDevice(video_stream_id_, this);
statistics_callback_ = stat_callback;
- filter_callback.Run();
+ filter_callback.Run(media::PIPELINE_OK);
state_ = kNormal;
}

Powered by Google App Engine
This is Rietveld 408576698