[MPlayer-dev-eng] [PATCH] mplayer: Fix building GUI without DVD support

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Oct 20 12:30:27 CEST 2012


On Thu, Oct 18, 2012 at 10:00:36AM +0200, Ingo Brückl wrote:
> Reimar Döffinger wrote on Tue, 09 Oct 2012 08:56:59 +0200:
> 
> > "Ingo Brückl" <ib at wupperonline.de> wrote:
> 
> >>Valentine Barshak wrote on Mon, 8 Oct 2012 22:34:48 +0400:
> >>
> >>> This patch fixes the following compilation error
> >>> when building GUI mplayer without DVD support:
> >>>   gui/interface.o: In function `gui':
> >>>   interface.c:(.text+0xbd4): undefined reference to `dvd_angle'
> >>>   interface.c:(.text+0x1199): undefined reference to `dvd_angle'
> >>
> >>Reimar,
> >>
> >>would that be OK with you or should I rather #ifdef CONFIG_DVDREAD
> >>everything with dvd_title, dvd_chapter and dvd_angle in the GUI sources?
> >>(We could then move the definitions of dvd_title and dvd_chapter to a
> >>proper place.)
> 
> >  The GUI should not be using any of these directly, instead use stream
> > controls. Even more so since using the variables directly to my
> > knowledge will not work when the cache is enabled.
> 
> This leads me to an other question:
> 
> In r34474, should I have added STREAM_CTRL_GET_NUM_TITLES to stream/cache2.c?

Yes, I think that will be necessary to make it work with caching
enabled.
I haven't actually tested it though.


More information about the MPlayer-dev-eng mailing list