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

Unified Diff: media/filters/ffmpeg_video_decoder.cc

Issue 14217008: Remove reference counting from media::DemuxerStream and friends. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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/ffmpeg_video_decoder.cc
diff --git a/media/filters/ffmpeg_video_decoder.cc b/media/filters/ffmpeg_video_decoder.cc
index 105199f197660c4095dd5ac74e0a0bf9cfc60ab7..05bb4b74820c202148d65844cb66d0249a941b02 100644
--- a/media/filters/ffmpeg_video_decoder.cc
+++ b/media/filters/ffmpeg_video_decoder.cc
@@ -61,7 +61,8 @@ FFmpegVideoDecoder::FFmpegVideoDecoder(
weak_factory_(this),
state_(kUninitialized),
codec_context_(NULL),
- av_frame_(NULL) {
+ av_frame_(NULL),
+ demuxer_stream_(NULL) {
}
int FFmpegVideoDecoder::GetVideoBuffer(AVCodecContext* codec_context,
@@ -130,7 +131,7 @@ static void ReleaseVideoBufferImpl(AVCodecContext* s, AVFrame* frame) {
frame->opaque = NULL;
}
-void FFmpegVideoDecoder::Initialize(const scoped_refptr<DemuxerStream>& stream,
+void FFmpegVideoDecoder::Initialize(DemuxerStream* stream,
const PipelineStatusCB& status_cb,
const StatisticsCB& statistics_cb) {
DCHECK(message_loop_->BelongsToCurrentThread());

Powered by Google App Engine
This is Rietveld 408576698