X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fsdl%2Fconsumer_sdl.c;h=30ec118f6e48b11f3d1af3ec73f55fd91b2d7569;hb=263782cae3c9917d957f71cde4b9a63080f8da9f;hp=e8e0eb30f8b4c91b1872b79971017fdcc998f042;hpb=ab444ea88c4406a2646e1db0d566b211886e2e1d;p=melted diff --git a/src/modules/sdl/consumer_sdl.c b/src/modules/sdl/consumer_sdl.c index e8e0eb3..30ec118 100644 --- a/src/modules/sdl/consumer_sdl.c +++ b/src/modules/sdl/consumer_sdl.c @@ -252,7 +252,8 @@ int consumer_stop( mlt_consumer parent ) // Kill the thread and clean up this->joined = 1; this->running = 0; - pthread_join( this->thread, NULL ); + if ( this->thread ) + pthread_join( this->thread, NULL ); // internal cleanup if ( this->sdl_overlay != NULL )