git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1370
d19143bc-622f-0410-bfdd-
b5b2a6649095
int current_height = mlt_properties_get_int( producer_props, "_height" );
// Parse the colour
int current_height = mlt_properties_get_int( producer_props, "_height" );
// Parse the colour
- char *resource = mlt_properties_get( producer_props, "resource" );
- if ( resource && strchr( resource, '/' ) )
- mlt_properties_set( producer_props, "resource", strrchr( resource, '/' ) + 1 );
+ if ( now && strchr( now, '/' ) )
+ {
+ now = strrchr( now, '/' ) + 1;
+ mlt_properties_set( producer_props, "resource", now );
+ }
rgba_color color = parse_color( now, mlt_properties_get_int( producer_props, "resource" ) );
// See if we need to regenerate
rgba_color color = parse_color( now, mlt_properties_get_int( producer_props, "resource" ) );
// See if we need to regenerate