From: lilo_booter Date: Wed, 24 Mar 2004 17:38:55 +0000 (+0000) Subject: ignore length of hidden tracks X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=ad829dbc7677a2acc063635db14ce717eb40be50;p=melted ignore length of hidden tracks git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@240 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/src/framework/mlt_multitrack.c b/src/framework/mlt_multitrack.c index 84f2389..6c24400 100644 --- a/src/framework/mlt_multitrack.c +++ b/src/framework/mlt_multitrack.c @@ -127,7 +127,8 @@ void mlt_multitrack_refresh( mlt_multitrack this ) mlt_properties_set( mlt_producer_properties( producer ), "eof", "continue" ); // Determine the longest length - length = mlt_producer_get_playtime( producer ) > length ? mlt_producer_get_playtime( producer ) : length; + 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 if ( fps == 0 ) @@ -259,7 +260,7 @@ mlt_position mlt_multitrack_clip( mlt_multitrack this, mlt_whence whence, int in // Get the producer for this track mlt_producer producer = this->list[ i ]; - // If it's assigned... + // If it's assigned and not a hidden track if ( producer != NULL ) { // Get the properties of this producer