blob: eb81f33f4276fa640a013ecc7a37773724663f3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
From ef749d7b526f0762a00a369ea35b5b12c18142fb Mon Sep 17 00:00:00 2001
From: Nicolas Boichat <nicolas@boichat.ch>
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
|