]> git.sesse.net Git - mlt/commitdiff
Fix Segmentation fault at exit by calling av_lockmgr_register( NULL );
authorNicolas Boichat <nicolas@boichat.ch>
Wed, 20 Mar 2013 08:50:56 +0000 (16:50 +0800)
committerDan Dennedy <dan@dennedy.org>
Fri, 22 Mar 2013 02:17:27 +0000 (19:17 -0700)
src/modules/avformat/factory.c

index ddf05fe0813d2f6f970765800cb82a2bcb270303..a273537750be99045950a5c80c7b7cffd235e3b9 100644 (file)
@@ -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);
        }
 }