]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_producer.c
Fix crash on null eof string.
[mlt] / src / framework / mlt_producer.c
index 6e33edf32deb22b4bb0b2797c1466bcfe0c1ef1e..d5c049b59b25a834a7a6ba45999357d45824bd19 100644 (file)
@@ -613,7 +613,7 @@ static int producer_get_frame( mlt_service service, mlt_frame_ptr frame, int ind
                clone = clone == NULL ? self : clone;
 
                // A properly instatiated producer will have a get_frame method...
-               if ( self->get_frame == NULL || ( !strcmp( eof, "continue" ) && mlt_producer_position( self ) > mlt_producer_get_out( self ) ) )
+               if ( self->get_frame == NULL || ( eof && !strcmp( eof, "continue" ) && mlt_producer_position( self ) > mlt_producer_get_out( self ) ) )
                {
                        // Generate a test frame
                        *frame = mlt_frame_init( service );