X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_producer.c;h=72b676cdf1d9da0e354bade9cd583546d5759958;hb=51f097a1265af1a197988b9731c8dc414ac8cc9b;hp=9ed89af5ad7449a690e82687e2d75c257772ac65;hpb=2e467c2eeba2b51aecddda21d4bb97bef4cd1459;p=melted 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 )