[Android] vlc-4.0: don't use removed variables

Thomas Guillem git at videolan.org
Thu Nov 14 10:30:12 CET 2019


vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Nov  7 13:43:12 2019 +0100| [10a441b6f933be8d697a5149677a975af511add2] | committer: Thomas Guillem

vlc-4.0: don't use removed variables

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

 libvlc/jni/libvlcjni-media.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/libvlc/jni/libvlcjni-media.c b/libvlc/jni/libvlcjni-media.c
index efcdd7650..7e2065448 100644
--- a/libvlc/jni/libvlcjni-media.c
+++ b/libvlc/jni/libvlcjni-media.c
@@ -727,7 +727,14 @@ Java_org_videolan_libvlc_Media_nativeGetStats(JNIEnv *env, jobject thiz)
                                           stats.i_lost_pictures,
                                           stats.i_played_abuffers,
                                           stats.i_lost_abuffers,
+#if defined(LIBVLC_VERSION_MAJOR) && LIBVLC_VERSION_MAJOR >= 4
+/* XXX: Temporary during the VLC 3.0 -> 4.0 transition. The Java API need
+ * to be updated. */
+                                          0, 0, 0
+#else
                                           stats.i_sent_packets,
                                           stats.i_sent_bytes,
-                                          stats.f_send_bitrate);
+                                          stats.f_send_bitrate
+#endif
+                                          );
 }



More information about the Android mailing list