projects
/
melted
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
consumer_sdl.c: bugfix segfault on unchecked pointer
[melted]
/
src
/
modules
/
sdl
/
consumer_sdl.c
diff --git
a/src/modules/sdl/consumer_sdl.c
b/src/modules/sdl/consumer_sdl.c
index
e8e0eb3
..
30ec118
100644
(file)
--- 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 )