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

Unified Diff: media/filters/gpu_video_decoder.cc

Issue 13813016: Remove reference counting from media::Demuxer and friends. (Closed) Base URL: http://git.chromium.org/chromium/src.git@vd_scoped
Patch Set: Created 7 years, 8 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: media/filters/gpu_video_decoder.cc
diff --git a/media/filters/gpu_video_decoder.cc b/media/filters/gpu_video_decoder.cc
index 6904bbb763e58da767f034815bef85bfd2646c34..3987031e6a9d14759da5bd049dc8ddcbe64e01fb 100644
--- a/media/filters/gpu_video_decoder.cc
+++ b/media/filters/gpu_video_decoder.cc
@@ -162,7 +162,8 @@ GpuVideoDecoder::BufferData::~BufferData() {}
GpuVideoDecoder::GpuVideoDecoder(
const scoped_refptr<base::MessageLoopProxy>& message_loop,
const scoped_refptr<Factories>& factories)
- : gvd_loop_proxy_(message_loop),
+ : demuxer_stream_(NULL),
+ gvd_loop_proxy_(message_loop),
weak_factory_(this),
vda_loop_proxy_(factories->GetMessageLoop()),
factories_(factories),
@@ -221,7 +222,7 @@ void GpuVideoDecoder::Stop(const base::Closure& closure) {
BindToCurrentLoop(closure).Run();
}
-void GpuVideoDecoder::Initialize(const scoped_refptr<DemuxerStream>& stream,
+void GpuVideoDecoder::Initialize(DemuxerStream* stream,
const PipelineStatusCB& orig_status_cb,
const StatisticsCB& statistics_cb) {
DCHECK(gvd_loop_proxy_->BelongsToCurrentThread());

Powered by Google App Engine
This is Rietveld 408576698