X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fcore%2Fproducer_colour.c;h=970cacb9536caf946a9b99c090a618e6372f1bbb;hb=8ecadc338cf97d53f77f67854ea6705ed5eabc2a;hp=6ff180ff966cb08f972ac60c462e2f0b8613f020;hpb=6820dfa615e2f55eb4ef17327c2cd293605c3389;p=melted diff --git a/src/modules/core/producer_colour.c b/src/modules/core/producer_colour.c index 6ff180f..970cacb 100644 --- a/src/modules/core/producer_colour.c +++ b/src/modules/core/producer_colour.c @@ -48,9 +48,7 @@ mlt_producer producer_colour_init( char *colour ) producer->close = producer_close; // Set the default properties - if ( colour == NULL ) - colour = "0x000000ff"; - mlt_properties_set( properties, "resource", colour ); + mlt_properties_set( properties, "resource", colour == NULL ? "0x000000ff" : colour ); return producer; } @@ -124,7 +122,6 @@ static int producer_get_image( mlt_frame frame, uint8_t **buffer, mlt_image_form // See if we need to regenerate if ( *width != current_width || *height != current_height ) { - fprintf( stderr, "%dx%d\n", *width, *height ); // Allocate the image size = *width * *height * 2; image = mlt_pool_alloc( size );