From b85660b63fd9e5becfdbea592a28ae18fa5f991e Mon Sep 17 00:00:00 2001 From: ddennedy Date: Sun, 8 Jun 2008 01:38:14 +0000 Subject: [PATCH] mlt_playlist.c: remove some unncessary and inefficient accounting code. git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1138 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/framework/mlt_playlist.c | 17 ++++------------- 1 files changed, 4 insertions(+), 13 deletions(-) diff --git a/src/framework/mlt_playlist.c b/src/framework/mlt_playlist.c index 4183506..084af24 100644 --- a/src/framework/mlt_playlist.c +++ b/src/framework/mlt_playlist.c @@ -346,20 +346,11 @@ static mlt_service mlt_playlist_virtual_seek( mlt_playlist this, int *progressiv mlt_producer p = this->list[ j ]->producer; if ( p ) { - mlt_properties p_properties = MLT_PRODUCER_PROPERTIES( p ); - // Prevent closing previously autoclosed to maintain integrity of references - if ( ! mlt_properties_get_int( p_properties, "_autoclosed" ) ) - { - mlt_properties_set_int( p_properties, "_autoclosed", 1 ); - mlt_service_unlock( MLT_PRODUCER_SERVICE( p ) ); - mlt_producer_close( p ); - this->list[ j ]->producer = NULL; - } - else - { - mlt_service_unlock( MLT_PRODUCER_SERVICE( p ) ); - } + this->list[ j ]->producer = NULL; + mlt_service_unlock( MLT_PRODUCER_SERVICE( p ) ); + mlt_producer_close( p ); } + // If p is null, the lock will not have been "taken" } } -- 1.7.4.4