Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-Android
Commits
fd76bf49
Commit
fd76bf49
authored
Jul 06, 2014
by
Edward Wang
Browse files
LibVLC: add getTitleCount
parent
e7cd90f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
vlc-android/jni/libvlcjni.c
View file @
fd76bf49
...
...
@@ -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
;
}
vlc-android/src/org/videolan/libvlc/LibVLC.java
View file @
fd76bf49
...
...
@@ -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
();
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment