From: Dan Dennedy Date: Sat, 25 Jan 2014 06:58:11 +0000 (-0800) Subject: Fix crash on audio only clip using uninialized mutex. X-Git-Url: https://git.sesse.net/?p=mlt;a=commitdiff_plain;h=31cb473c0599cadfcab3e8d78d3585595751c720 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. --- 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;