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

Valentine Barshak gvaxon at gmail.com
Mon Oct 8 20:34:48 CEST 2012


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'
    
Signed-off-by: Valentine Barshak <gvaxon at gmail.com>

--- a/stream/open.c	2011-03-21 22:21:32.000000000 +0300
+++ b/stream/open.c	2012-09-04 17:01:47.810060133 +0400
@@ -43,6 +43,7 @@ int dvd_chapter=1;
 int dvd_last_chapter=0;
 char* dvd_device=NULL;
 int dvd_title=0;
+int dvd_angle=1;
 char *bluray_device=NULL;
 
 // Open a new stream  (stdin/file/vcd/url)
--- a/stream/stream_dvd.c	2012-02-19 17:15:41.000000000 +0400
+++ b/stream/stream_dvd.c	2012-09-04 17:01:47.905060138 +0400
@@ -44,7 +44,6 @@
 #include "libmpdemux/demuxer.h"
 
 static char* dvd_device_current;
-int dvd_angle=1;
 
 #define	LIBDVDREAD_VERSION(maj,min,micro)	((maj)*10000 + (min)*100 + (micro))
 /*


More information about the MPlayer-dev-eng mailing list