[Mplayer-cvslog] CVS: main cfg-mplayer.h,1.223,1.224

Diego Biurrun diego at biurrun.de
Sat Jul 31 19:18:41 CEST 2004


Nicolas Plourde writes:
> Reimar Döffinger wrote:
> 
> >> +    {"rootwin", &WinID, CONF_TYPE_FLAG, 0, -1, 0, NULL},
> >>  #endif
> >>  
> >> -#if defined(HAVE_X11) || defined(MACOSX)
> >> -    {"rootwin", &WinID, CONF_TYPE_FLAG, 0, -1, 0, NULL},
> >> +#ifdef MACOSX
> >> +    {"rootwin", &vo_rootwin, CONF_TYPE_FLAG, 0, 0, 1, NULL},
> >>  #endif
> >
> > Is it possible that HAVE_X11 and MACOSX are both defined? In that case 
> > that probably won't work for one. I guess it would be better if both 
> > used the same variable...
> >
> 
> Yes it is possible but WinID is IMO a bad hack and should be fixed to 
> use vo_rootwin variable.
> add something like that:
> cfg-mplayer.h
> #if defined(HAVE_X11) || defined(MACOSX)
>     {"rootwin", &vo_rootwin, CONF_TYPE_FLAG, 0, 0, 1, NULL},
>  #endif
> 
> in x11 code dont now where add(pre init stuff):
> if(vo_rootwin)
>     WinID = 0;
> 
> That make more sense, at least tom me. The WinID is also defined in 
> x11_common.h so
> using it in osx specific code is out of question. If someone have a 
> better idea im waiting for your feedback.

What about a patch then?

Diego




More information about the MPlayer-cvslog mailing list