Behavioural change - tracks with hide properties now affect length (might be problematic)
[melted] / src / framework / mlt_multitrack.c
index 6f92484..d274dbc 100644 (file)
@@ -136,7 +136,7 @@ void mlt_multitrack_refresh( mlt_multitrack this )
                                mlt_properties_set( mlt_producer_properties( producer ), "eof", "continue" );
                        
                        // Determine the longest length
-                       if ( !mlt_properties_get_int( mlt_producer_properties( producer ), "hide" ) )
+                       //if ( !mlt_properties_get_int( mlt_producer_properties( producer ), "hide" ) )
                                length = mlt_producer_get_playtime( producer ) > length ? mlt_producer_get_playtime( producer ) : length;
                        
                        // Handle fps
@@ -416,10 +416,7 @@ static int producer_get_frame( mlt_producer parent, mlt_frame_ptr frame, int ind
                mlt_properties properties = mlt_frame_properties( *frame );
                mlt_properties_set_double( properties, "_speed", speed );
                mlt_properties_set_position( properties, "_position", position );
-               if ( mlt_properties_get_int( properties, "test_image" ) == 0 )
-                       mlt_properties_set_int( properties, "test_image", hide & 1 );
-               if ( mlt_properties_get_int( properties, "test_audio" ) == 0 )
-                       mlt_properties_set_int( properties, "test_audio", hide & 2 );
+               mlt_properties_set_int( properties, "hide", hide );
        }
        else
        {