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

Unified Diff: media/base/mock_ffmpeg.cc

Issue 151192: Cleanup resources allocated by FFmpeg to avoid memory and threads leaks... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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/base/mock_ffmpeg.h ('k') | media/filters/ffmpeg_demuxer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/mock_ffmpeg.cc
===================================================================
--- media/base/mock_ffmpeg.cc (revision 19826)
+++ media/base/mock_ffmpeg.cc (working copy)
@@ -57,6 +57,10 @@
return media::MockFFmpeg::get()->AVCodecOpen(avctx, codec);
}
+int avcodec_close(AVCodecContext* avctx) {
+ return media::MockFFmpeg::get()->AVCodecClose(avctx);
+}
+
int avcodec_thread_init(AVCodecContext* avctx, int threads) {
return media::MockFFmpeg::get()->AVCodecThreadInit(avctx, threads);
}
@@ -83,6 +87,10 @@
parameters);
}
+void av_close_input_file(AVFormatContext* format) {
+ media::MockFFmpeg::get()->AVCloseInputFile(format);
+}
+
int av_find_stream_info(AVFormatContext* format) {
return media::MockFFmpeg::get()->AVFindStreamInfo(format);
}
« no previous file with comments | « media/base/mock_ffmpeg.h ('k') | media/filters/ffmpeg_demuxer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698