]> git.sesse.net Git - mlt/blobdiff - src/modules/core/producer_colour.c
fix the alpha channel to be opaque on empty string
[mlt] / src / modules / core / producer_colour.c
index 99598fec1434704c9ffd3910102bde8106eb98cd..2b11bc11d3bac1c0f5716b84b5bbca1f2aba9ef0 100644 (file)
@@ -48,7 +48,7 @@ mlt_producer producer_colour_init( mlt_profile profile, mlt_service_type type, c
                producer->close = ( mlt_destructor )producer_close;
 
                // Set the default properties
-               mlt_properties_set( properties, "resource", colour == NULL ? "0x000000ff" : colour );
+               mlt_properties_set( properties, "resource", ( !colour || !strcmp( colour, "" ) ) ? "0x000000ff" : colour );
                mlt_properties_set( properties, "_resource", "" );
                mlt_properties_set_double( properties, "aspect_ratio", mlt_profile_sar( profile ) );