Commit fd76bf49 authored by Edward Wang's avatar Edward Wang
Browse files

LibVLC: add getTitleCount

parent e7cd90f1
......@@ -562,3 +562,11 @@ jint Java_org_videolan_libvlc_LibVLC_getChapterCountForTitle(JNIEnv *env, jobjec
return libvlc_media_player_get_chapter_count_for_title(mp, title);
return -1;
jint Java_org_videolan_libvlc_LibVLC_getTitleCount(JNIEnv *env, jobject thiz)
libvlc_media_player_t *mp = getMediaPlayer(env, thiz);
if (mp)
return libvlc_media_player_get_title_count(mp);
return -1;
......@@ -714,5 +714,6 @@ public class LibVLC {
public native int getTitle();
public native void setTitle(int title);
public native int getChapterCountForTitle(int title);
public native int getTitleCount();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment