[libbluray-devel] Adopted BD-J to recent API changes

hpi1 git at videolan.org
Mon Jun 13 19:48:43 CEST 2011


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Jun 13 20:47:09 2011 +0300| [e93aa914327f8599ee69665a877a3777b1809691] | committer: hpi1

Adopted BD-J to recent API changes

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=e93aa914327f8599ee69665a877a3777b1809691
---

 src/examples/bdj_test.c                           |    2 +-
 src/libbluray/bdj/native/org_videolan_Libbluray.c |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/examples/bdj_test.c b/src/examples/bdj_test.c
index ceedb87..bb8a46f 100644
--- a/src/examples/bdj_test.c
+++ b/src/examples/bdj_test.c
@@ -47,7 +47,7 @@ int main(int argc, char** argv)
 
     BLURAY* bd = bd_open(argv[1], NULL);
 
-    bd_get_titles(bd, TITLES_ALL);
+    bd_get_titles(bd, TITLES_ALL, 0);
     bd_select_title(bd, 1);
 
     if (!bd_start_bdj(bd, argv[2])) {
diff --git a/src/libbluray/bdj/native/org_videolan_Libbluray.c b/src/libbluray/bdj/native/org_videolan_Libbluray.c
index b441a25..a85838c 100644
--- a/src/libbluray/bdj/native/org_videolan_Libbluray.c
+++ b/src/libbluray/bdj/native/org_videolan_Libbluray.c
@@ -81,7 +81,7 @@ JNIEXPORT jobject JNICALL Java_org_videolan_Libbluray_getTitleInfoN
 {
     BDJAVA* bdj = (BDJAVA*)np;
 
-    BLURAY_TITLE_INFO* ti = bd_get_title_info(bdj->bd, title);
+    BLURAY_TITLE_INFO* ti = bd_get_title_info(bdj->bd, title, 0);
     if (!ti)
         return NULL;
 
@@ -96,7 +96,7 @@ JNIEXPORT jobject JNICALL Java_org_videolan_Libbluray_getPlaylistInfoN
   (JNIEnv * env, jclass cls, jlong np, jint playlist)
 {
     BDJAVA* bdj = (BDJAVA*)np;
-    BLURAY_TITLE_INFO* ti = bd_get_playlist_info(bdj->bd, playlist);
+    BLURAY_TITLE_INFO* ti = bd_get_playlist_info(bdj->bd, playlist, 0);
     if (!ti)
         return NULL;
 
@@ -110,7 +110,7 @@ JNIEXPORT jobject JNICALL Java_org_videolan_Libbluray_getPlaylistInfoN
 JNIEXPORT jint JNICALL Java_org_videolan_Libbluray_getTitlesN(JNIEnv * env,
         jclass cls, jlong np, jchar flags) {
     BDJAVA* bdj = (BDJAVA*) np;
-    return bd_get_titles(bdj->bd, flags);
+    return bd_get_titles(bdj->bd, flags, 0);
 }
 
 JNIEXPORT jlong JNICALL Java_org_videolan_Libbluray_seekN(JNIEnv * env,



More information about the libbluray-devel mailing list