Mercurial > mplayer.hg
comparison libmpdvdkit2/libdvdcss_changes.diff @ 18109:68145aae7349
fallback to USERPROFILE environment variable for caching CSS keys when
HOME is not set (for MinGW builds running outside of MinGW).
author | reimar |
---|---|
date | Sat, 15 Apr 2006 21:45:29 +0000 |
parents | 279cd50f2ba0 |
children | e5d97c5f3c32 |
comparison
equal
deleted
inserted
replaced
18108:ddd84e99f17c | 18109:68145aae7349 |
---|---|
68 -#include "dvdcss/dvdcss.h" | 68 -#include "dvdcss/dvdcss.h" |
69 +#include "dvdcss.h" | 69 +#include "dvdcss.h" |
70 | 70 |
71 #include "common.h" | 71 #include "common.h" |
72 #include "css.h" | 72 #include "css.h" |
73 @@ -301,6 +301,10 @@ | |
74 { | |
75 psz_home = getenv( "HOME" ); | |
76 } | |
77 + if( psz_home == NULL ) | |
78 + { | |
79 + psz_home = getenv( "USERPROFILE" ); | |
80 + } | |
81 | |
82 /* Cache our keys in ${HOME}/.dvdcss/ */ | |
83 if( psz_home ) |