[MPlayer-cvslog] CVS: main/libmpdemux stream_dvd.c,1.8,1.9

Dominik Mierzejewski CVS syncmail at mplayerhq.hu
Wed Dec 28 13:34:23 CET 2005


CVS change done by Dominik Mierzejewski CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv3113

Modified Files:
	stream_dvd.c 
Log Message:
fix dvdread version macro
patch by Emanuele Giaquinta (emanuele.giaquinta at gmail dot com)


Index: stream_dvd.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/stream_dvd.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- stream_dvd.c	14 Dec 2005 21:52:41 -0000	1.8
+++ stream_dvd.c	28 Dec 2005 12:34:20 -0000	1.9
@@ -34,17 +34,19 @@
 
 #ifdef HAVE_DVD
 #ifdef USE_DVDREAD
-#define	DVDREAD_VERSION(maj,min,micro)	((maj)*10000 + (min)*100 + (micro))
+#define	LIBDVDREAD_VERSION(maj,min,micro)	((maj)*10000 + (min)*100 + (micro))
 /*
  * Try to autodetect the libdvd-0.9.0 library
  * (0.9.0 removed the <dvdread/dvd_udf.h> header, and moved the two defines
  * DVD_VIDEO_LB_LEN and MAX_UDF_FILE_NAME_LEN from it to
  * <dvdread/dvd_reader.h>)
  */
+#ifndef DVDREAD_VERSION
 #if defined(DVD_VIDEO_LB_LEN) && defined(MAX_UDF_FILE_NAME_LEN)
-#define	LIBDVDREAD_VERSION	DVDREAD_VERSION(0,9,0)
+#define	DVDREAD_VERSION	LIBDVDREAD_VERSION(0,9,0)
 #else
-#define	LIBDVDREAD_VERSION	DVDREAD_VERSION(0,8,0)
+#define	DVDREAD_VERSION	LIBDVDREAD_VERSION(0,8,0)
+#endif
 #endif
 
 char * dvd_audio_stream_types[8] = { "ac3","unknown","mpeg1","mpeg2ext","lpcm","unknown","dts" };
@@ -263,7 +265,7 @@
   if(data[38]==0 && data[39]==0 && data[40]==1 && data[41]==0xBF &&
     data[1024]==0 && data[1025]==0 && data[1026]==1 && data[1027]==0xBF) {
        // found a Navi packet!!!
-#if LIBDVDREAD_VERSION >= DVDREAD_VERSION(0,9,0)
+#if DVDREAD_VERSION >= LIBDVDREAD_VERSION(0,9,0)
     navRead_DSI(&d->dsi_pack, &(data[ DSI_START_BYTE ]));
 #else
     navRead_DSI(&d->dsi_pack, &(data[ DSI_START_BYTE ]), sizeof(dsi_t));




More information about the MPlayer-cvslog mailing list