From 51f097a1265af1a197988b9731c8dc414ac8cc9b Mon Sep 17 00:00:00 2001 From: lilo_booter Date: Wed, 17 Nov 2004 13:15:43 +0000 Subject: [PATCH] Extendible blank producers git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@530 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/framework/mlt_producer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/framework/mlt_producer.c b/src/framework/mlt_producer.c index 9ed89af5..72b676cd 100644 --- a/src/framework/mlt_producer.c +++ b/src/framework/mlt_producer.c @@ -320,6 +320,8 @@ int mlt_producer_set_in_and_out( mlt_producer this, mlt_position in, mlt_positio out = 0; else if ( out > mlt_producer_get_length( this ) && !mlt_producer_is_blank( this ) ) out = mlt_producer_get_length( this ); + else if ( out >= mlt_producer_get_length( this ) - 1 && mlt_producer_is_blank( this ) ) + mlt_properties_set_position( mlt_producer_properties( this ), "length", out + 1 ); // Swap ins and outs if wrong if ( out < in ) -- 2.39.2