[Android] Update libvlcjni.c

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


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

Update libvlcjni.c

Signed-off-by: Geoffrey Métais <geoffrey.metais at gmail.com>

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

 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 3c086d6c5..6884432f9 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