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

Unified Diff: media/base/mock_ffmpeg.cc

Issue 909002: Removed custom FFmpegLock. Removed ffmpeg headers from third_party/ffmpeg/include. (Closed)
Patch Set: Updated Created 10 years, 9 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/ffmpeg/ffmpeg_common.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/mock_ffmpeg.cc
diff --git a/media/base/mock_ffmpeg.cc b/media/base/mock_ffmpeg.cc
index 0d87206809fb63ba1739a91bb8b235270a96687b..9c30938c794ea66c12138f046f1c9bd3f88029f1 100644
--- a/media/base/mock_ffmpeg.cc
+++ b/media/base/mock_ffmpeg.cc
@@ -92,6 +92,16 @@ void av_register_all() {
media::MockFFmpeg::get()->AVRegisterAll();
}
+int av_lockmgr_register(int (*cb)(void**, enum AVLockOp)) {
+ media::MockFFmpeg* mock = media::MockFFmpeg::get();
+ // Here |mock| may be NULL when this function is called from ~FFmpegGlue().
+ if (mock != NULL) {
+ return media::MockFFmpeg::get()->AVRegisterLockManager(cb);
+ } else {
+ return 0;
+ }
+}
+
AVCodec* avcodec_find_decoder(enum CodecID id) {
return media::MockFFmpeg::get()->AVCodecFindDecoder(id);
}
« no previous file with comments | « media/base/mock_ffmpeg.h ('k') | media/ffmpeg/ffmpeg_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698