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
VLC-Android
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
e698cdc4
Commit
e698cdc4
authored
Aug 21, 2012
by
Edward Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jni: Fix build breakage from 33dfab3c2119f7121288c091a7b82cac40a8a5f9
parent
0195b684
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
compile.sh
compile.sh
+1
-1
vlc-android/jni/libvlcjni.c
vlc-android/jni/libvlcjni.c
+5
-1
No files found.
compile.sh
View file @
e698cdc4
...
...
@@ -88,7 +88,7 @@ export PLATFORM_SHORT_ARCH
export
PATH
=
${
ANDROID_NDK
}
/toolchains/
${
PATH_HOST
}
-
${
GCCVER
}
/prebuilt/
`
uname
|tr A-Z a-z
`
-x86
/bin:
${
PATH
}
# 1/ libvlc, libvlccore and its plugins
TESTED_HASH
=
5e674f0
TESTED_HASH
=
df4da38
if
[
!
-d
"vlc"
]
;
then
echo
"VLC source not found, cloning"
git clone git://git.videolan.org/vlc.git vlc
...
...
vlc-android/jni/libvlcjni.c
View file @
e698cdc4
...
...
@@ -328,7 +328,11 @@ jstring Java_org_videolan_vlc_LibVLC_nativeToURI(JNIEnv *env, jobject thiz, jstr
/* Get C string */
const
char
*
psz_path
=
(
*
env
)
->
GetStringUTFChars
(
env
,
path
,
&
isCopy
);
/* Convert the path to URI */
char
*
psz_location
=
make_URI
(
psz_path
,
"file"
);
char
*
psz_location
;
if
(
unlikely
(
strstr
(
psz_path
,
"://"
)
))
psz_location
=
strdup
(
psz_path
);
else
psz_location
=
vlc_path2uri
(
psz_path
,
"file"
);
/* Box into jstring */
jstring
t
=
(
*
env
)
->
NewStringUTF
(
env
,
psz_location
);
/* Clean up */
...
...
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