]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_producer.c
Alphas and global feeds revisted
[mlt] / src / framework / mlt_producer.c
index 55f85ada23c7d1c04ba040b1b033c661f480a71b..1b86f6c98c0f08e5b0cf4f9baff7e183747f706e 100644 (file)
@@ -194,8 +194,8 @@ mlt_producer mlt_producer_cut( mlt_producer this, int in, int out )
        // Special case - allow for a cut of the entire producer (this will squeeze all other cuts to 0)
        if ( in <= 0 )
                in = 0;
-       if ( ( out < 0 || out >= mlt_producer_get_playtime( parent ) ) && !mlt_producer_is_blank( this ) )
-               out = mlt_producer_get_playtime( parent ) - 1;
+       if ( ( out < 0 || out >= mlt_producer_get_length( parent ) ) && !mlt_producer_is_blank( this ) )
+               out = mlt_producer_get_length( parent ) - 1;
 
        mlt_properties_inc_ref( parent_props );
        mlt_properties_set_int( properties, "_cut", 1 );