[Mplayer-cvslog] CVS: main/libmpdvdkit2 device.c,1.5,1.6

Joey Parrish CVS syncmail at mplayerhq.hu
Fri Aug 13 00:37:10 CEST 2004


CVS change done by Joey Parrish CVS

Update of /cvsroot/mplayer/main/libmpdvdkit2
In directory mail:/var2/tmp/cvs-serv24641/libmpdvdkit2

Modified Files:
	device.c 
Log Message:
mpdvdkit now accepts X:\ as a device name, as well as X:


Index: device.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdvdkit2/device.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- device.c	19 Jul 2003 17:28:17 -0000	1.5
+++ device.c	12 Aug 2004 22:37:08 -0000	1.6
@@ -134,8 +134,11 @@
     _dvdcss_debug( dvdcss, psz_debug );
 
 #if defined( WIN32 )
-    /* If device is not "X:", we are actually opening a file. */
-    dvdcss->b_file = !psz_device[0] || psz_device[1] != ':' || psz_device[2];
+    dvdcss->b_file = 1;
+    /* If device is "X:" or "X:\", we are not actually opening a file. */
+    if (psz_device[0] && psz_device[1] == ':' &&
+       (!psz_device[2] || (psz_device[2] == '\\' && !psz_device[3])))
+        dvdcss->b_file = 0;
 
     /* Initialize readv temporary buffer */
     dvdcss->p_readv_buffer   = NULL;




More information about the MPlayer-cvslog mailing list