Hi,

Following Kdenlive issue 2747 (1), I discovered that the dust filter now 
crashes on every use.

The reason is that it calls an image producer to create overlay images from 
svg files. It usually calls the pixbuf producer, and since the frame is not 
called by a consumer, the "rescale.interp" property is not defined (Looks like 
the dust filter tries to pass it on line 130 but doesn't work) and causes a 
crash.

Can be reproduced by:

melt color:red -attach dust

Patch below fixes the crash.

Regards
jb


1) http://kdenlive.org/mantis/view.php?id=2747

----------------------------------------------------------------------------------

diff --git a/src/modules/gtk2/producer_pixbuf.c 
b/src/modules/gtk2/producer_pixbuf.c
index 1bbd317..fade92c 100644
--- a/src/modules/gtk2/producer_pixbuf.c
+++ b/src/modules/gtk2/producer_pixbuf.c
@@ -415,8 +415,10 @@ static void refresh_image( producer_pixbuf self, 
mlt_frame frame, 
        {
                char *interps = mlt_properties_get( properties, 
"rescale.interp" );
                int interp = GDK_INTERP_BILINEAR;
-
-               if ( strcmp( interps, "nearest" ) == 0 )
+               if (interps == NULL) {
+                   // Keep bilinear by default
+               }
+               else if ( strcmp( interps, "nearest" ) == 0 )
                        interp = GDK_INTERP_NEAREST;
                else if ( strcmp( interps, "tiles" ) == 0 )
                        interp = GDK_INTERP_TILES;


------------------------------------------------------------------------------
How fast is your code?
3 out of 4 devs don\\\'t know how their code performs in production.
Find out how slow your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219672;13503038;z?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to