bugfixes with field rendering
[melted] / src / modules / core / producer_colour.c
index 6ff180f..970cacb 100644 (file)
@@ -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 );