]> git.sesse.net Git - mlt/commitdiff
Make framebuffer producer recover from broken frame instead of producing white frames...
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Thu, 4 Apr 2013 12:23:46 +0000 (14:23 +0200)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Thu, 4 Apr 2013 12:23:46 +0000 (14:23 +0200)
src/modules/kdenlive/producer_framebuffer.c

index 3e4b3b3d6a817381d96d45843abd20a405216ac0..bad5005a0612c55086e298944454bb4cb1963eca 100644 (file)
@@ -157,7 +157,8 @@ static int framebuffer_get_image( mlt_frame frame, uint8_t **image, mlt_image_fo
                int error = mlt_frame_get_image( first_frame, &first_image, format, width, height, writable );
 
                if ( error != 0 ) {
-                       mlt_log_error( MLT_PRODUCER_SERVICE( producer ), "first_image == NULL get image died\n" );
+                       mlt_log_warning( MLT_PRODUCER_SERVICE( producer ), "first_image == NULL get image died\n" );
+                       mlt_properties_set_data( properties, "first_frame", NULL, 0, NULL, NULL );
                        mlt_service_unlock( MLT_PRODUCER_SERVICE( producer ) );
                        return error;
                }