Skip to content

Commit

Permalink
+ Deadlock resolution
Browse files Browse the repository at this point in the history
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@850 d19143bc-622f-0410-bfdd-b5b2a6649095
  • Loading branch information
lilo_booter committed Oct 13, 2005
1 parent 7651a18 commit 7cb310d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/sdl/consumer_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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( );
Expand Down

0 comments on commit 7cb310d

Please sign in to comment.