[Mplayer-cvslog] CVS: main/libmpdvdkit2 libdvdcss.c,1.9,1.10

Alex Beregszaszi alex at mplayerhq.hu
Tue Apr 8 19:37:08 CEST 2003


Update of /cvsroot/mplayer/main/libmpdvdkit2
In directory mail:/var/tmp.root/cvs-serv24530

Modified Files:
	libdvdcss.c 
Log Message:
forwardport: warning fix and netbsd fix

Index: libdvdcss.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdvdkit2/libdvdcss.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- libdvdcss.c	11 Feb 2003 15:25:23 -0000	1.9
+++ libdvdcss.c	8 Apr 2003 17:36:33 -0000	1.10
@@ -117,6 +117,12 @@
 #define SYS_CYGWIN
 #endif
 
+#ifndef HAVE_MPLAYER
+ #include "get_path.c"
+#else
+ extern char * get_path( char * filename );
+#endif
+
 /**
  * \brief Symbol for version checks.
  *
@@ -390,7 +396,7 @@
             goto nocache;
         }
 
-        i += sprintf( dvdcss->psz_cachefile + i, "/%s/", psz_data );
+        i += sprintf( dvdcss->psz_cachefile + i, "/%s", psz_data );
 #if !defined( WIN32 ) || defined( SYS_CYGWIN )
         i_ret = mkdir( dvdcss->psz_cachefile, 0755 );
 #else
@@ -402,6 +408,7 @@
             dvdcss->psz_cachefile[0] = '\0';
             goto nocache;
         }
+        i += sprintf( dvdcss->psz_cachefile + i, "/");
 
         /* Pointer to the filename we will use. */
         dvdcss->psz_block = dvdcss->psz_cachefile + i;



More information about the MPlayer-cvslog mailing list