]> git.sesse.net Git - mlt/commitdiff
fix null pointer check (coverity-709396)
authorDan Dennedy <dan@dennedy.org>
Fri, 17 Aug 2012 07:14:45 +0000 (00:14 -0700)
committerDan Dennedy <dan@dennedy.org>
Fri, 17 Aug 2012 07:14:45 +0000 (00:14 -0700)
src/modules/core/producer_consumer.c

index e31fc84e6440c93d0f79e2c0cd4bdfbc689d6cb9..5b63f16b3cfb5eaac885e69e00d2db3f5cd5ace1 100644 (file)
@@ -159,7 +159,7 @@ static int get_frame( mlt_producer this, mlt_frame_ptr frame, int index )
 
        // Generate a frame
        *frame = mlt_frame_init( MLT_PRODUCER_SERVICE( this ) );
-       if ( frame )
+       if ( *frame )
        {
                // Seek the producer to the correct place
                // Calculate our positions