From: lilo_booter Date: Thu, 13 Oct 2005 08:04:10 +0000 (+0000) Subject: + Deadlock resolution X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=7cb310d7b5057620a78cfd4ff68f7404a0daebd8;p=melted + Deadlock resolution git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@850 d19143bc-622f-0410-bfdd-b5b2a6649095 --- 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( );