X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fwestley%2Fproducer_westley.c;h=35f77393e873cbc020d5332a93d924695e6c81f2;hb=d5d878221c3123ef1d3a335dbc2b1878b3fdb983;hp=0568a67d44e6ce01e26b8c098c6ae363df7cf992;hpb=b6c72f309b9b2637109ffe020b4de4b278473c42;p=melted diff --git a/src/modules/westley/producer_westley.c b/src/modules/westley/producer_westley.c index 0568a67..35f7739 100644 --- a/src/modules/westley/producer_westley.c +++ b/src/modules/westley/producer_westley.c @@ -170,10 +170,10 @@ static void track_service( mlt_properties properties, void *service, mlt_destruc // Prepend the property value with the document root -static inline void qualify_property( deserialise_context context, mlt_properties properties, char *name ) +static inline void qualify_property( deserialise_context context, mlt_properties properties, const char *name ) { char *resource = mlt_properties_get( properties, name ); - if ( resource != NULL ) + if ( resource != NULL && resource[0] ) { // Qualify file name properties char *root = mlt_properties_get( context->producer_map, "root" ); @@ -978,7 +978,7 @@ static void on_start_property( deserialise_context context, const xmlChar *name, enum service_type type; mlt_service service = context_pop_service( context, &type ); mlt_properties properties = MLT_SERVICE_PROPERTIES( service ); - char *value = NULL; + const char *value = NULL; if ( service != NULL ) {