From: lilo_booter Date: Sun, 11 Jan 2004 19:38:37 +0000 (+0000) Subject: multitrack eof handling X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=3cdcb361562ac24233535f04e88df5c99d7c24b2;p=melted multitrack eof handling git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@56 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/mlt/src/framework/mlt_multitrack.c b/mlt/src/framework/mlt_multitrack.c index b357546..893cef5 100644 --- a/mlt/src/framework/mlt_multitrack.c +++ b/mlt/src/framework/mlt_multitrack.c @@ -121,6 +121,10 @@ void mlt_multitrack_refresh( mlt_multitrack this ) // If it's allocated then, update our stats if ( producer != NULL ) { + // If we have more than 1 track, we must be in continue mode + if ( this->count > 1 ) + 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; @@ -160,10 +164,6 @@ int mlt_multitrack_connect( mlt_multitrack this, mlt_producer producer, int trac if ( result == 0 ) { - // If it's a playlist, we need to make sure it doesn't pause at end - mlt_properties properties = mlt_producer_properties( producer ); - mlt_properties_set( properties, "eof", "continue" ); - // Resize the producer list if need be if ( track >= this->size ) { diff --git a/src/framework/mlt_multitrack.c b/src/framework/mlt_multitrack.c index b357546..893cef5 100644 --- a/src/framework/mlt_multitrack.c +++ b/src/framework/mlt_multitrack.c @@ -121,6 +121,10 @@ void mlt_multitrack_refresh( mlt_multitrack this ) // If it's allocated then, update our stats if ( producer != NULL ) { + // If we have more than 1 track, we must be in continue mode + if ( this->count > 1 ) + 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; @@ -160,10 +164,6 @@ int mlt_multitrack_connect( mlt_multitrack this, mlt_producer producer, int trac if ( result == 0 ) { - // If it's a playlist, we need to make sure it doesn't pause at end - mlt_properties properties = mlt_producer_properties( producer ); - mlt_properties_set( properties, "eof", "continue" ); - // Resize the producer list if need be if ( track >= this->size ) {