X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fsdl%2Fconsumer_sdl.c;h=bcd69a04c1f3ac361720b5d844c755e52be2929a;hb=7cb310d7b5057620a78cfd4ff68f7404a0daebd8;hp=2d2d8ac63f4f9a5092ce38e2aa3b5560864aca2a;hpb=7651a182bf7191ab5db9b3741caeac2f86540281;p=melted 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( );