]> git.sesse.net Git - mlt/commitdiff
This lock makes kdenlive start more reliably in the debugger.
authorDan Dennedy <dan@dennedy.org>
Thu, 17 Dec 2009 07:14:54 +0000 (23:14 -0800)
committerDan Dennedy <dan@dennedy.org>
Thu, 17 Dec 2009 07:14:54 +0000 (23:14 -0800)
src/modules/sdl/consumer_sdl_still.c

index dfc413c96814c8696ef3153a708aaf5f329efed3..e042b44efcdf1dd10b4223746e09f3219c31bfea 100644 (file)
@@ -523,7 +523,9 @@ static int consumer_play_video( consumer_sdl this, mlt_frame frame )
                }
 
                // Flip it into sight
+               pthread_mutex_lock( &mlt_sdl_mutex );
                SDL_Flip( this->sdl_screen );
+               pthread_mutex_unlock( &mlt_sdl_mutex );
        }
 
        sdl_unlock_display();