]> git.sesse.net Git - mlt/commitdiff
Fix crash with invalid video_driver property.
authorDan Dennedy <dan@dennedy.org>
Tue, 30 Jun 2009 02:14:53 +0000 (19:14 -0700)
committerDan Dennedy <dan@dennedy.org>
Tue, 30 Jun 2009 02:14:53 +0000 (19:14 -0700)
Signed-off-by: Dan Dennedy <dan@dennedy.org>
src/modules/sdl/consumer_sdl_preview.c

index 12b78782707f4c58195318f78bb4b412eda4de4e..48149fe8d5abc5e4f23c17a7a36b57fac81eec2c 100644 (file)
@@ -238,8 +238,8 @@ static int consumer_stop( mlt_consumer parent )
                pthread_mutex_lock( &this->refresh_mutex );
                pthread_cond_broadcast( &this->refresh_cond );
                pthread_mutex_unlock( &this->refresh_mutex );
-
-               pthread_join( this->thread, NULL );
+               if ( this->thread )
+                       pthread_join( this->thread, NULL );
                this->joined = 1;
 
                if ( app_locked && lock ) lock( );