]> git.sesse.net Git - mlt/commitdiff
fix possible null pointer dereference (coverity-714581)
authorDan Dennedy <dan@dennedy.org>
Fri, 17 Aug 2012 07:05:27 +0000 (00:05 -0700)
committerDan Dennedy <dan@dennedy.org>
Fri, 17 Aug 2012 07:05:27 +0000 (00:05 -0700)
src/modules/sdl/consumer_sdl_preview.c

index 5cd1059f4957e85fe2b38346c8ae66324a25b90b..24d9b979b304d359b8f345aaebf13ae1743159fb 100644 (file)
@@ -429,7 +429,8 @@ static void *consumer_thread( void *arg )
                                        this->ignore_change = 0;
                                        mlt_consumer_start( this->play );
                                }
-                               mlt_consumer_put_frame( this->play, frame );
+                               if ( this->play )
+                                       mlt_consumer_put_frame( this->play, frame );
                        }
 
                        // Copy the rectangle info from the active consumer