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

Xuebin Wu bangbangbear at gmail.com
Sat Apr 28 18:09:47 CEST 2007


Hello.

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)
@@ -271,6 +271,7 @@
         {
             switch(guiIntfStruct.StreamType)
             {
+#ifdef USE_DVDREAD
                 case STREAMTYPE_DVD:
                 {
                     guiIntfStruct.Title = guiIntfStruct.DVD.current_title;
@@ -280,6 +281,7 @@
                     guiGetEvent(guiCEvent, (void *) guiSetPlay);
                     break;
                 }
+#endif
                 default:
                 {
                     guiIntfStruct.FilenameChanged = guiIntfStruct.NewPlay =
1;
Index: gui/win32/gui.c
===================================================================
--- gui/win32/gui.c (revision 23160)
+++ gui/win32/gui.c (working copy)
@@ -1025,8 +1025,8 @@
                                 cdrom_device[2]=0;
                                 handlemsg(hWnd, evPlayCD);
                             }
+                            else
 #endif
-                            else
                             {
                                 HANDLE searchhndl;
                                 WIN32_FIND_DATA finddata;



More information about the MPlayer-dev-eng mailing list