[MPlayer-cvslog] CVS: main/libmpdvdkit2 libdvdcss.c, 1.18, 1.19 libdvdcss_changes.diff, 1.7, 1.8
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Sat Apr 15 23:45:32 CEST 2006
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main/libmpdvdkit2
In directory mail:/var2/tmp/cvs-serv20453
Modified Files:
libdvdcss.c libdvdcss_changes.diff
Log Message:
fallback to USERPROFILE environment variable for caching CSS keys when
HOME is not set (for MinGW builds running outside of MinGW).
Index: libdvdcss.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdvdkit2/libdvdcss.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- libdvdcss.c 24 Oct 2005 09:50:42 -0000 1.18
+++ libdvdcss.c 15 Apr 2006 21:45:29 -0000 1.19
@@ -301,6 +301,10 @@
{
psz_home = getenv( "HOME" );
}
+ if( psz_home == NULL )
+ {
+ psz_home = getenv( "USERPROFILE" );
+ }
/* Cache our keys in ${HOME}/.dvdcss/ */
if( psz_home )
Index: libdvdcss_changes.diff
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdvdkit2/libdvdcss_changes.diff,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- libdvdcss_changes.diff 24 Oct 2005 09:50:42 -0000 1.7
+++ libdvdcss_changes.diff 15 Apr 2006 21:45:29 -0000 1.8
@@ -70,3 +70,14 @@
#include "common.h"
#include "css.h"
+@@ -301,6 +301,10 @@
+ {
+ psz_home = getenv( "HOME" );
+ }
++ if( psz_home == NULL )
++ {
++ psz_home = getenv( "USERPROFILE" );
++ }
+
+ /* Cache our keys in ${HOME}/.dvdcss/ */
+ if( psz_home )
More information about the MPlayer-cvslog
mailing list