]> git.sesse.net Git - mlt/commitdiff
transition_composite.c: allow removing of luma file by passing an empty name
authorj-b-m <j-b-m@d19143bc-622f-0410-bfdd-b5b2a6649095>
Sun, 15 Mar 2009 18:55:05 +0000 (18:55 +0000)
committerj-b-m <j-b-m@d19143bc-622f-0410-bfdd-b5b2a6649095>
Sun, 15 Mar 2009 18:55:05 +0000 (18:55 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1379 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/core/transition_composite.c

index 3725c4a62c548f0c32dd745e4ae9ab3426674a5d..1f4ad894c8d96a41ccc2b216062e3cda0fc35ec3 100644 (file)
@@ -648,6 +648,15 @@ static uint16_t* get_luma( mlt_transition this, mlt_properties properties, int w
                        luma_bitmap = NULL;
                }
        }
+       else {
+               char *old_luma = mlt_properties_get( properties, "_luma" );
+               if ( old_luma && old_luma[0] )
+               {
+                       mlt_properties_set_data( properties, "_luma.orig_bitmap", NULL, 0, NULL, NULL );
+                       luma_bitmap = NULL;
+                       mlt_properties_set( properties, "_luma", NULL);
+               }
+       }
 
        if ( resource && resource[0] && ( luma_bitmap == NULL || luma_width != width || luma_height != height ) )
        {