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

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

Issue 170843004: Pass Client pointer in Initialize() for VDA/VEA (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 48f212da fischman@ comments. Created 6 years, 10 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: content/renderer/media/rtc_video_decoder.cc
diff --git a/content/renderer/media/rtc_video_decoder.cc b/content/renderer/media/rtc_video_decoder.cc
index ce1f24c6b520755daf9a58e07f2a2a7fd7265be7..bacbb9cd2a171429db52e9dce39402e412775001 100644
--- a/content/renderer/media/rtc_video_decoder.cc
+++ b/content/renderer/media/rtc_video_decoder.cc
@@ -672,7 +672,9 @@ void RTCVideoDecoder::ReusePictureBuffer(
void RTCVideoDecoder::CreateVDA(media::VideoCodecProfile profile,
base::WaitableEvent* waiter) {
DCHECK(vda_task_runner_->BelongsToCurrentThread());
- vda_ = factories_->CreateVideoDecodeAccelerator(profile, this);
+ vda_ = factories_->CreateVideoDecodeAccelerator(profile);
+ if (vda_ && !vda_->Initialize(this, profile))
+ vda_.release()->Destroy();
waiter->Signal();
}

Powered by Google App Engine
This is Rietveld 408576698