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

Unified Diff: media/filters/ffmpeg_glue.cc

Issue 854006: Revert 41386 - Removed custom FFmpegLock. Removed ffmpeg headers from third_p... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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/filters/ffmpeg_demuxer.cc ('k') | media/filters/ffmpeg_video_decode_engine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_glue.cc
===================================================================
--- media/filters/ffmpeg_glue.cc (revision 41387)
+++ media/filters/ffmpeg_glue.cc (working copy)
@@ -81,30 +81,6 @@
return 0;
}
-int LockManagerOperation(void** lock, enum AVLockOp op) {
- switch (op) {
- case AV_LOCK_CREATE:
- *lock = new Lock();
- if (!*lock)
- return 1;
- return 0;
-
- case AV_LOCK_OBTAIN:
- static_cast<Lock*>(*lock)->Acquire();
- return 0;
-
- case AV_LOCK_RELEASE:
- static_cast<Lock*>(*lock)->Release();
- return 0;
-
- case AV_LOCK_DESTROY:
- delete static_cast<Lock*>(*lock);
- *lock = NULL;
- return 0;
- }
- return 1;
-}
-
} // namespace
//------------------------------------------------------------------------------
@@ -131,14 +107,12 @@
// Register our protocol glue code with FFmpeg.
avcodec_init();
av_register_protocol(&kFFmpegURLProtocol);
- av_lockmgr_register(&LockManagerOperation);
// Now register the rest of FFmpeg.
av_register_all();
}
FFmpegGlue::~FFmpegGlue() {
- av_lockmgr_register(NULL);
}
std::string FFmpegGlue::AddProtocol(FFmpegURLProtocol* protocol) {
« no previous file with comments | « media/filters/ffmpeg_demuxer.cc ('k') | media/filters/ffmpeg_video_decode_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698