diff options
Diffstat (limited to 'media/filters/vpx_video_decoder.cc')
-rw-r--r-- | media/filters/vpx_video_decoder.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/media/filters/vpx_video_decoder.cc b/media/filters/vpx_video_decoder.cc index df314ec2c1..ecef96cf16 100644 --- a/media/filters/vpx_video_decoder.cc +++ b/media/filters/vpx_video_decoder.cc @@ -204,11 +204,9 @@ void VpxVideoDecoder::MemoryPool::OnVideoFrameDestroyed( VpxVideoDecoder::VpxVideoDecoder( const scoped_refptr<base::SingleThreadTaskRunner>& task_runner) : task_runner_(task_runner), - weak_factory_(this), state_(kUninitialized), vpx_codec_(NULL), - vpx_codec_alpha_(NULL) { -} + vpx_codec_alpha_(NULL) {} VpxVideoDecoder::~VpxVideoDecoder() { DCHECK_EQ(kUninitialized, state_); @@ -223,8 +221,6 @@ void VpxVideoDecoder::Initialize(const VideoDecoderConfig& config, DCHECK(decode_cb_.is_null()); DCHECK(reset_cb_.is_null()); - weak_this_ = weak_factory_.GetWeakPtr(); - if (!ConfigureDecoder(config)) { status_cb.Run(DECODER_ERROR_NOT_SUPPORTED); return; |