Commit e698cdc4 authored by Edward Wang's avatar Edward Wang

jni: Fix build breakage from 33dfab3c2119f7121288c091a7b82cac40a8a5f9

parent 0195b684
......@@ -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
......
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment