From 31cb473c0599cadfcab3e8d78d3585595751c720 Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Fri, 24 Jan 2014 22:58:11 -0800 Subject: [PATCH] Fix crash on audio only clip using uninialized mutex. This was reproducible on Windows using winpthreads, which apparently does not gracefully handle calls on uninitialized mutexes. --- src/modules/avformat/producer_avformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/avformat/producer_avformat.c b/src/modules/avformat/producer_avformat.c index 4fc10523..cbdd38fd 100644 --- a/src/modules/avformat/producer_avformat.c +++ b/src/modules/avformat/producer_avformat.c @@ -1949,7 +1949,7 @@ static void producer_set_up_video( producer_avformat self, mlt_frame frame ) } // Update the video properties if the index changed - if ( index != self->video_index ) + if ( context && index > -1 && index != self->video_index ) { // Reset the video properties if the index changed self->video_index = index; -- 2.39.2