[MPlayer-dev-eng] [PATCH]Compile without DVD suport

Carl Eugen Hoyos cehoyos at ag.or.at
Sat Apr 28 19:54:01 CEST 2007


Hi!

Xuebin Wu <bangbangbear <at> gmail.com> writes:

> I found my DVD-ROM is broken, so I want to have a mplayer without DVD read
> support. I use the configure options
> --disable-dvdread --disable-dvdread-internal --disable-libdvdcss-internal
> and found compile is failed.
> The following patch is used to solve this compiling problem.
> 
> Index: gui/win32/interface.c
> ===================================================================
> --- gui/win32/interface.c (revision 23160)
> +++ gui/win32/interface.c (working copy)
>  <at>  <at>  -271,6 +271,7  <at>  <at> 
>          {
>              switch(guiIntfStruct.StreamType)
>              {
> +#ifdef USE_DVDREAD
>                  case STREAMTYPE_DVD:
>                  {
>                      guiIntfStruct.Title = guiIntfStruct.DVD.current_title;
>  <at>  <at>  -280,6 +281,7  <at>  <at> 
>                      guiGetEvent(guiCEvent, (void *) guiSetPlay);
>                      break;
>                  }
> +#endif

I'll apply this part after the weekend if nobody objects.
[...]

> Index: gui/win32/gui.c
> ===================================================================
> --- gui/win32/gui.c (revision 23160)
> +++ gui/win32/gui.c (working copy)
>  <at>  <at>  -1025,8 +1025,8  <at>  <at> 
>                                  cdrom_device[2]=0;
>                                  handlemsg(hWnd, evPlayCD);
>                              }
> +                            else
>  #endif
> -                            else

This is a bit more difficult (at least for me):
The code reads:
  if (param==CDROM)
#ifdef USE_DVDREAD
    if (pathexists"VIDEO_TS")
      handlemsg (hWnd, evPlayDVD)
#endif
#ifdef HAVE_LIBCDIO
    if (patchexists"Track01.cda")
      handlemsg (hWnd, evPlayCD)
#endif
    else //this is obviously wrong if neither USE_DVDREAD nor HAVE_LIBCDIO
      handle *.dat

Perhaps the else is not needed at all?
Could someone clarify?

Thank you, Carl Eugen





More information about the MPlayer-dev-eng mailing list