Skip to content
Snippets Groups Projects
Commit 1bb8b13e authored by Thomas Guillem's avatar Thomas Guillem
Browse files

LibVLC: add majorVersion() method

Return the VLC major version, 3 or 4 for now.
parent 415cf6d2
No related branches found
No related tags found
1 merge request!395Libvlc4 fixes
......@@ -450,6 +450,11 @@ jstring Java_org_videolan_libvlc_LibVLC_version(JNIEnv* env, jobject thiz)
return (*env)->NewStringUTF(env, libvlc_get_version());
}
jint Java_org_videolan_libvlc_LibVLC_majorVersion(JNIEnv* env, jobject thiz)
{
return atoi(libvlc_get_version());
}
jstring Java_org_videolan_libvlc_LibVLC_compiler(JNIEnv* env, jobject thiz)
{
return (*env)->NewStringUTF(env, libvlc_get_compiler());
......
......@@ -97,6 +97,13 @@ public class LibVLC extends VLCObject<ILibVLC.Event> implements ILibVLC {
*/
public static native String version();
/**
* Get the libVLC major version
*
* @return the libVLC major version, always >= 3
*/
public static native int majorVersion();
/**
* Get the libVLC compiler
*
......
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