From 689ffbad7da48a5c795df6b5995f8b6b3c9a4299 Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Sun, 19 Jan 2014 13:10:01 -0800 Subject: [PATCH] Fix crash on null eof string. --- src/framework/mlt_producer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/framework/mlt_producer.c b/src/framework/mlt_producer.c index 6e33edf3..d5c049b5 100644 --- a/src/framework/mlt_producer.c +++ b/src/framework/mlt_producer.c @@ -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 ); -- 2.39.2