Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libdvdcss
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
libdvdcss
Commits
50a92094
Commit
50a92094
authored
Oct 27, 2015
by
Romain Bentz
Committed by
Jean-Baptiste Kempf
Oct 27, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix CSS key caching on Android
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
3a322908
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
src/libdvdcss.c
src/libdvdcss.c
+14
-0
No files found.
src/libdvdcss.c
View file @
50a92094
...
...
@@ -215,6 +215,18 @@ static int set_cache_directory( dvdcss_t dvdcss )
dvdcss
->
psz_cachefile
[
PATH_MAX
-
1
]
=
'\0'
;
psz_cache
=
dvdcss
->
psz_cachefile
;
}
#else
#ifdef __ANDROID__
/* $HOME is not writable on __ANDROID__ so we have to create a custom
* directory in userland */
char
*
psz_home
=
"/sdcard/Android/data/org.videolan.dvdcss"
;
int
i_ret
=
mkdir
(
psz_home
,
0755
);
if
(
i_ret
<
0
&&
errno
!=
EEXIST
)
{
print_error
(
dvdcss
,
"failed creating home directory"
);
psz_home
=
NULL
;
}
#else
char
*
psz_home
=
NULL
;
#ifdef HAVE_PWD_H
...
...
@@ -228,6 +240,8 @@ static int set_cache_directory( dvdcss_t dvdcss )
}
#endif
/* HAVE_PWD_H */
#endif
/* __ANDROID__ */
if
(
psz_home
==
NULL
)
{
psz_home
=
getenv
(
"HOME"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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