From 263782cae3c9917d957f71cde4b9a63080f8da9f Mon Sep 17 00:00:00 2001 From: ddennedy Date: Fri, 23 Jan 2009 01:36:44 +0000 Subject: [PATCH] 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 --- src/modules/sdl/consumer_sdl.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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 ) -- 1.7.4.4