On Sat, Sep 22, 2012 at 2:57 AM, j-b-m <[email protected]> wrote:
> Hi,
>
> Currently, the pango producer triggers an error when trying to play a pango
> clip. To reproduce:
>
> melt pango: text=1 in=0 out=50 -consumer xml:test.mlt
>
> Trying to play the resulting test.mlt file triggers the error:
>
> [producer_xml] failed to load producer "(...)<producer>"
>
> This is because the xml output of the pango producer shows the following line:
>
> <property name="resource">&lt;producer&gt;</property>
>
> Following patch makes the error disappear...
>
> regards
>
> jb
>
> _____________________________________________________________________________
>
>
> diff --git a/src/modules/gtk2/producer_pango.c
> b/src/modules/gtk2/producer_pango.c
> index be9c3c9..8611ba8 100644
> --- a/src/modules/gtk2/producer_pango.c
> +++ b/src/modules/gtk2/producer_pango.c
> @@ -158,7 +158,7 @@ mlt_producer producer_pango_init( const char *filename )
>
>                 if ( filename == NULL || ( filename && ( !strcmp( filename, ""
> )
>                         // workaround for old kdenlive countdown generator
> -                       || strstr( filename, "&lt;producer&gt;" ) ) ) )
> +                       || strstr( filename, "<producer>" ) ) ) )

maybe it accept both of those as equivalent to empty string

>                 {
>                         mlt_properties_set( properties, "markup", "" );
>                 }
>
>
-- 
+-DRD-+

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to