Also make sure the mutex unlocks

Otherwise deadlock
This commit is contained in:
jp9000
2014-03-11 09:16:16 -07:00
parent c09a2efc3c
commit afc798f712

View File

@@ -839,7 +839,7 @@ static void ffmpeg_output_stop(void *data)
av_free_packet(output->packets.array+i);
da_free(output->packets);
pthread_mutex_lock(&output->write_mutex);
pthread_mutex_unlock(&output->write_mutex);
ffmpeg_data_free(&output->ff_data);
}