From: ddennedy Date: Fri, 23 Jan 2009 01:36:44 +0000 (+0000) Subject: consumer_sdl.c: bugfix segfault on unchecked pointer X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=263782cae3c9917d957f71cde4b9a63080f8da9f;p=melted consumer_sdl.c: bugfix segfault on unchecked pointer git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1323 d19143bc-622f-0410-bfdd-b5b2a6649095 --- 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 )