From: lilo_booter Date: Wed, 17 Nov 2004 13:15:43 +0000 (+0000) Subject: Extendible blank producers X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=51f097a1265af1a197988b9731c8dc414ac8cc9b;p=melted Extendible blank producers git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@530 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/src/framework/mlt_producer.c b/src/framework/mlt_producer.c index 9ed89af..72b676c 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 )