X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fcore%2Fproducer_colour.c;h=ac4200178d5615023385fb159e61efde30d6e043;hb=bcbe5ecf7001335895da8be92518f4645977a839;hp=fc570de5b7fa541ebbb01a0b055dc29afbe9eb96;hpb=e20c8745bbc0ce7d5a2a35624632dce49d02b2e4;p=melted diff --git a/src/modules/core/producer_colour.c b/src/modules/core/producer_colour.c index fc570de..ac42001 100644 --- a/src/modules/core/producer_colour.c +++ b/src/modules/core/producer_colour.c @@ -115,9 +115,11 @@ static int producer_get_image( mlt_frame frame, uint8_t **buffer, mlt_image_form 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