From 9c7b399431ffc490bf0dac9833a301f76f433623 Mon Sep 17 00:00:00 2001 From: j-b-m Date: Wed, 25 Jun 2008 20:27:31 +0000 Subject: [PATCH] mlt_service.c: fix bad identification for some services (eg. transitions) git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1150 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/framework/mlt_service.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/framework/mlt_service.c b/src/framework/mlt_service.c index 4c97886..9201865 100644 --- a/src/framework/mlt_service.c +++ b/src/framework/mlt_service.c @@ -123,13 +123,11 @@ mlt_service_type mlt_service_identify( mlt_service this ) char *resource = mlt_properties_get( properties, "resource" ); if ( mlt_type == NULL ) type = unknown_type; - else if ( resource == NULL || !strcmp( resource, "" ) ) - type = producer_type; - else if ( !strcmp( resource, "" ) ) + else if (resource != NULL && !strcmp( resource, "" ) ) type = playlist_type; - else if ( !strcmp( resource, "" ) ) + else if (resource != NULL && !strcmp( resource, "" ) ) type = tractor_type; - else if ( !strcmp( resource, "" ) ) + else if (resource != NULL && !strcmp( resource, "" ) ) type = multitrack_type; else if ( !strcmp( mlt_type, "producer" ) ) type = producer_type; -- 1.7.4.4