From: j-b-m Date: Wed, 25 Jun 2008 20:27:31 +0000 (+0000) Subject: mlt_service.c: fix bad identification for some services (eg. transitions) X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=9c7b399431ffc490bf0dac9833a301f76f433623;p=melted 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 --- 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;