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

Unified Diff: media/filters/ffmpeg_video_decoder.cc

Issue 10067035: RefCounted types should not have public destructors, media/ and gpu/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 7 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
« no previous file with comments | « media/filters/ffmpeg_video_decoder.h ('k') | media/filters/file_data_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_video_decoder.cc
diff --git a/media/filters/ffmpeg_video_decoder.cc b/media/filters/ffmpeg_video_decoder.cc
index 5ba22a00fd878e7751dc62d5f0a6cb368b880c21..f85b6cbc0b966597681a428a05cd4fecbb333519 100644
--- a/media/filters/ffmpeg_video_decoder.cc
+++ b/media/filters/ffmpeg_video_decoder.cc
@@ -59,10 +59,6 @@ FFmpegVideoDecoder::FFmpegVideoDecoder(
frame_rate_denominator_(0) {
}
-FFmpegVideoDecoder::~FFmpegVideoDecoder() {
- ReleaseFFmpegResources();
-}
-
void FFmpegVideoDecoder::Initialize(const scoped_refptr<DemuxerStream>& stream,
const PipelineStatusCB& status_cb,
const StatisticsCB& statistics_cb) {
@@ -179,6 +175,10 @@ AesDecryptor* FFmpegVideoDecoder::decryptor() {
return &decryptor_;
}
+FFmpegVideoDecoder::~FFmpegVideoDecoder() {
+ ReleaseFFmpegResources();
+}
+
void FFmpegVideoDecoder::DoRead(const ReadCB& read_cb) {
DCHECK_EQ(MessageLoop::current(), message_loop_);
DCHECK(!read_cb.is_null());
« no previous file with comments | « media/filters/ffmpeg_video_decoder.h ('k') | media/filters/file_data_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698