small change to prevent segfault in some transitions time specifications
[melted] / mlt / src / modules / gtk2 / producer_pango.c
index 5877d52..6609ce9 100644 (file)
@@ -84,6 +84,8 @@ mlt_producer producer_pango_init( const char *markup )
                mlt_properties_set_int( properties, "y", 0 );
                mlt_properties_set_double( properties, "mix", 1.0 );
 
+               mlt_properties_set( properties, "resource", "pango" );
+
                return producer;
        }
        free( this );
@@ -286,8 +288,8 @@ static int producer_get_frame( mlt_producer producer, mlt_frame_ptr frame, int i
                mlt_properties_set_double( properties, "mix",  mlt_properties_get_double( producer_props, "mix" ) );
 
                // if picture sequence pass the image and alpha data without destructor
-               mlt_properties_set_data( properties, "image", this->image, 0, NULL, NULL );
-               mlt_properties_set_data( properties, "alpha", this->alpha, 0, NULL, NULL );
+               mlt_properties_set_data( properties, "image", this->image, this->width * this->height * 2, NULL, NULL );
+               mlt_properties_set_data( properties, "alpha", this->alpha, this->width * this->height, NULL, NULL );
 
                // Set alpha mask call back
                ( *frame )->get_alpha_mask = producer_get_alpha_mask;