From 7cb310d7b5057620a78cfd4ff68f7404a0daebd8 Mon Sep 17 00:00:00 2001 From: lilo_booter Date: Thu, 13 Oct 2005 08:04:10 +0000 Subject: [PATCH] + Deadlock resolution git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@850 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/modules/sdl/consumer_sdl.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/modules/sdl/consumer_sdl.c b/src/modules/sdl/consumer_sdl.c index 2d2d8ac..bcd69a0 100644 --- a/src/modules/sdl/consumer_sdl.c +++ b/src/modules/sdl/consumer_sdl.c @@ -246,7 +246,12 @@ int consumer_stop( mlt_consumer parent ) this->sdl_overlay = NULL; if ( !mlt_properties_get_int( MLT_CONSUMER_PROPERTIES( parent ), "audio_off" ) ) + { + pthread_mutex_lock( &this->audio_mutex ); + pthread_cond_broadcast( &this->audio_cond ); + pthread_mutex_unlock( &this->audio_mutex ); SDL_QuitSubSystem( SDL_INIT_AUDIO ); + } if ( mlt_properties_get_int( MLT_CONSUMER_PROPERTIES( parent ), "sdl_started" ) == 0 ) SDL_Quit( ); -- 1.7.4.4