[MPlayer-cvslog] r33403 - trunk/libmenu/menu.c

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat May 7 22:40:34 CEST 2011


On Sat, May 07, 2011 at 10:28:18PM +0200, Clément Bœsch wrote:
> On Sat, May 07, 2011 at 09:06:27PM +0200, reimar wrote:
> > Author: reimar
> > Date: Sat May  7 21:06:26 2011
> > New Revision: 33403
> > 
> > Log:
> > Fix variable type and values to match function prototype.
> > 
> > Modified:
> >    trunk/libmenu/menu.c
> > 
> > Modified: trunk/libmenu/menu.c
> > ==============================================================================
> > --- trunk/libmenu/menu.c	Sat May  7 20:59:15 2011	(r33402)
> > +++ trunk/libmenu/menu.c	Sat May  7 21:06:26 2011	(r33403)
> > @@ -438,7 +438,7 @@ static char *menu_fribidi(char *txt)
> >    static size_t buffer_size = 1024;
> >    static char *outputstr;
> >  
> > -  FriBidiCharType base;
> > +  FriBidiParType base;
> >    fribidi_boolean log2vis;
> >    size_t len;
> >  
> > @@ -459,7 +459,7 @@ static char *menu_fribidi(char *txt)
> >        outputstr = realloc(outputstr, buffer_size);
> >      }
> >      len = fribidi_charset_to_unicode (char_set_num, txt, len, logical);
> > -    base = menu_fribidi_flip_commas?FRIBIDI_TYPE_ON:FRIBIDI_TYPE_L;
> > +    base = menu_fribidi_flip_commas?FRIBIDI_PAR_ON:FRIBIDI_PAR_LTR;
> >      log2vis = fribidi_log2vis (logical, len, &base, visual, NULL, NULL, NULL);
> >      if (log2vis) {
> >        len = fribidi_remove_bidi_marks (visual, len, NULL, NULL, NULL);
> 
> Careful about that one. IIRC we got the same issue with a sub file. It
> may be meaningful to check for the version of FriBiDi.

Yes I saw some code in the headers that would indicate that some
older fribidi versions might have issues.
But it didn't seem worth keeping it, I think we'll see when we get bug
reports.


More information about the MPlayer-cvslog mailing list