[Android] Update libvlcjni.c

zhuobixin git at videolan.org
Thu May 2 17:54:25 CEST 2019


vlc-android | branch: 3.1.x | zhuobixin <49975911+zhuobixin at users.noreply.github.com> | Thu Apr 25 15:49:43 2019 +0800| [a1ed24d462dc5a0ac9f6553a8108e477deceb544] | committer: Geoffrey Métais

Update libvlcjni.c

Signed-off-by: Geoffrey Métais <geoffrey.metais at gmail.com>
(cherry picked from commit bf23121f316f123bc146bcdbc841ec4071ee5465)

> https://code.videolan.org/videolan/vlc-android/commit/a1ed24d462dc5a0ac9f6553a8108e477deceb544
---

 libvlc/jni/libvlcjni.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libvlc/jni/libvlcjni.c b/libvlc/jni/libvlcjni.c
index fd2d7e12a..34ec141ac 100644
--- a/libvlc/jni/libvlcjni.c
+++ b/libvlc/jni/libvlcjni.c
@@ -491,7 +491,7 @@ void Java_org_videolan_libvlc_LibVLC_nativeSetUserAgent(JNIEnv* env,
     psz_name = jname ? (*env)->GetStringUTFChars(env, jname, 0) : NULL;
     psz_http = jhttp ? (*env)->GetStringUTFChars(env, jhttp, 0) : NULL;
 
-    if (psz_http && psz_http)
+    if (psz_name && psz_http)
         libvlc_set_user_agent(p_obj->u.p_libvlc, psz_name, psz_http);
 
     if (psz_name)



More information about the Android mailing list