Skip to content
Snippets Groups Projects
Commit 5da61399 authored by Alexandre Janniaux's avatar Alexandre Janniaux
Browse files

libvlcjni-medialist: fix libvlc_media_list_new() call in 4.0

In 4.0, since 97a47946d70ab374dec5039b8ad445fe6eba8d1c, there is no
instance parameter for this function.
parent 1388b3c0
No related branches found
No related tags found
1 merge request!675libvlcjni-medialist: fix libvlc_media_list_new() call in 4.0
Pipeline #20504 passed with stage
in 30 minutes and 42 seconds
......@@ -67,7 +67,11 @@ Java_org_videolan_libvlc_MediaList_nativeNewFromLibVlc(JNIEnv *env,
if (!p_obj)
return;
#if LIBVLC_VERSION_MAJOR && LIBVLC_VERSION_MAJOR >= 4
p_obj->u.p_ml = libvlc_media_list_new();
#else
p_obj->u.p_ml = libvlc_media_list_new(p_obj->p_libvlc);
#endif
MediaList_nativeNewCommon(env, thiz, p_obj);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment