Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
libdvdcss
Commits
167fb801
Commit
167fb801
authored
Nov 03, 2014
by
Diego Biurrun
Browse files
Skip determining cache directory name if DVDCSS_CACHE is set to "off".
parent
c2db0011
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libdvdcss.c
View file @
167fb801
...
...
@@ -186,6 +186,11 @@ static char *set_cache_directory( dvdcss_t dvdcss )
{
char
*
psz_cache
=
getenv
(
"DVDCSS_CACHE"
);
if
(
psz_cache
&&
!
strcmp
(
psz_cache
,
"off"
)
)
{
return
NULL
;
}
if
(
psz_cache
==
NULL
||
psz_cache
[
0
]
==
'\0'
)
{
#if defined(_WIN32_IE) && _WIN32_IE >= 0x500
...
...
@@ -249,7 +254,7 @@ static char *set_cache_directory( dvdcss_t dvdcss )
/* Sanity check psz_cache value. */
if
(
psz_cache
!=
NULL
)
{
if
(
psz_cache
[
0
]
==
'\0'
||
!
strcmp
(
psz_cache
,
"off"
)
)
if
(
psz_cache
[
0
]
==
'\0'
)
{
return
NULL
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment