Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
libdvdcss
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
libdvdcss
Commits
50a92094
Commit
50a92094
authored
9 years ago
by
Romain Bentz
Committed by
Jean-Baptiste Kempf
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix CSS key caching on Android
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
3a322908
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/libdvdcss.c
+14
-0
14 additions, 0 deletions
src/libdvdcss.c
with
14 additions
and
0 deletions
src/libdvdcss.c
+
14
−
0
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"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment