]> git.sesse.net Git - mlt/blobdiff - src/modules/core/producer_colour.c
Fix crashing when using opengl services with wrapper producers.
[mlt] / src / modules / core / producer_colour.c
index bb9427cc40d2783f8983739c601facce6f15fd83..80ca7a61b79e97ca4afe687bb5d6cc44845747ce 100644 (file)
@@ -88,7 +88,7 @@ static int producer_get_image( mlt_frame frame, uint8_t **buffer, mlt_image_form
        mlt_color color = mlt_properties_get_color( producer_props, "resource" );
 
        // Choose suitable out values if nothing specific requested
-       if ( *format == mlt_image_none )
+       if ( *format == mlt_image_none || *format == mlt_image_glsl )
                *format = mlt_image_rgb24a;
        if ( *width <= 0 )
                *width = mlt_service_profile( MLT_PRODUCER_SERVICE(producer) )->width;