[MPlayer-cvslog] r32451 - trunk/libvo/vo_dxr3.c

Diego Biurrun diego at biurrun.de
Mon Oct 11 13:30:48 CEST 2010


On Sat, Oct 09, 2010 at 03:32:55PM +0200, Reimar Döffinger wrote:
> On Sat, Oct 09, 2010 at 02:19:16PM +0200, Diego Biurrun wrote:
> > On Fri, Oct 08, 2010 at 06:34:19PM +0200, Reimar Döffinger wrote:
> > > On Fri, Oct 08, 2010 at 11:00:50AM +0200, diego wrote:
> > > > 
> > > > Log:
> > > > cosmetics: Drop some {} from if statements to get rid of pointless #ifdefs.
> > > > 
> > > > --- trunk/libvo/vo_dxr3.c	Fri Oct  8 10:56:20 2010	(r32450)
> > > > +++ trunk/libvo/vo_dxr3.c	Fri Oct  8 11:00:50 2010	(r32451)
> > > > @@ -890,15 +886,12 @@ static int preinit(const char *arg)
> > > >  		/* Initialize overlay and X11 */
> > > >  		overlay_data = overlay_init(fd_control);
> > > >  #ifdef CONFIG_GUI
> > > > -		if (!use_gui) {
> > > > +		if (!use_gui)
> > > >  #endif
> > > >  			if (!vo_init()) {
> > > >  				mp_msg(MSGT_VO,MSGL_ERR, MSGTR_LIBVO_DXR3_UnableToInitX11);
> > > >  				return -1;
> > > >  			}
> > > > -#ifdef CONFIG_GUI
> > > > -		}
> > > > -#endif
> > > >  	}
> > > >  #endif
> > > 
> > > Someone around who can actually test it?
> > 
> > Ask around on mplayer-users maybe?
> > 
> > > I suspect that the if actually needs to be removed completely to make it work at all...
> > 
> > You mean the "if (!use_gui)"?  Maybe we should just drop such GUI ifdefs
> > completely.  We cannot test them and I don't think obscure GUI features
> > warrant making the core code ugly.
> 
> Note that they definitely aren't necessary if using the new libvo API, however
> as the MGA case showed again it's not really possible to do that kind
> of change without testing, even though normally all that is necessary
> is to just delete half the code :-)

If we can find nobody willing to test the code (even after some time),
then nobody is using it and we might as well remove it.

Diego


More information about the MPlayer-cvslog mailing list