]> git.sesse.net Git - mlt/commitdiff
Extendible blank producers
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 17 Nov 2004 13:15:43 +0000 (13:15 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 17 Nov 2004 13:15:43 +0000 (13:15 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@530 d19143bc-622f-0410-bfdd-b5b2a6649095

src/framework/mlt_producer.c

index 9ed89af5ad7449a690e82687e2d75c257772ac65..72b676cdf1d9da0e354bade9cd583546d5759958 100644 (file)
@@ -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 )