]> git.sesse.net Git - mlt/commitdiff
Fix intermittent crash when closing sdl_audio.
authorDan Dennedy <dan@dennedy.org>
Fri, 23 Sep 2011 05:03:56 +0000 (22:03 -0700)
committerDan Dennedy <dan@dennedy.org>
Fri, 23 Sep 2011 05:03:56 +0000 (22:03 -0700)
src/modules/sdl/consumer_sdl_audio.c

index fecdf2368ef5dd8f59960e2fa285854baf519960..e59aae3c68868e9c875880274583a9f468daed10 100644 (file)
@@ -206,8 +206,7 @@ int consumer_stop( mlt_consumer parent )
                pthread_cond_broadcast( &this->audio_cond );
                pthread_mutex_unlock( &this->audio_mutex );
 
-               if ( this->playing )
-                       SDL_QuitSubSystem( SDL_INIT_AUDIO );
+               SDL_QuitSubSystem( SDL_INIT_AUDIO );
        }
 
        return 0;