From 7a65a910b77ad191d69881098c47f9b0c852d92e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Aug 2013 01:33:19 -0700 Subject: Tue Aug 13 01:31:08 PDT 2013 --- ...ation-fault-at-exit-by-calling-av_lockmgr.patch | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 community/mlt/fix-segmentation-fault-at-exit-by-calling-av_lockmgr.patch (limited to 'community/mlt/fix-segmentation-fault-at-exit-by-calling-av_lockmgr.patch') diff --git a/community/mlt/fix-segmentation-fault-at-exit-by-calling-av_lockmgr.patch b/community/mlt/fix-segmentation-fault-at-exit-by-calling-av_lockmgr.patch new file mode 100644 index 000000000..eb81f33f4 --- /dev/null +++ b/community/mlt/fix-segmentation-fault-at-exit-by-calling-av_lockmgr.patch @@ -0,0 +1,37 @@ +From ef749d7b526f0762a00a369ea35b5b12c18142fb Mon Sep 17 00:00:00 2001 +From: Nicolas Boichat +Date: Wed, 20 Mar 2013 16:50:56 +0800 +Subject: [PATCH] Fix Segmentation fault at exit by calling + av_lockmgr_register( NULL ); + +--- + src/modules/avformat/factory.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/src/modules/avformat/factory.c b/src/modules/avformat/factory.c +index ddf05fe..a273537 100644 +--- a/src/modules/avformat/factory.c ++++ b/src/modules/avformat/factory.c +@@ -83,6 +83,11 @@ static int avformat_lockmgr(void **mutex, enum AVLockOp op) + return 0; + } + ++static void avformat_exit( ) ++{ ++ av_lockmgr_register( NULL ); ++} ++ + static void avformat_init( ) + { + // Initialise avformat if necessary +@@ -98,6 +103,7 @@ static void avformat_init( ) + avformat_network_init(); + #endif + av_log_set_level( mlt_log_get_level() ); ++ atexit(avformat_exit); + } + } + +-- +1.8.1.5 + -- cgit v1.2.3-54-g00ecf