[libbluray-devel] propagate bd_set_virtual_package() return value

hpi1 git at videolan.org
Tue Feb 3 20:51:57 CET 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Feb  3 11:59:05 2015 +0200| [f84bad9998f7d174f26180437310431fd9c50328] | committer: hpi1

propagate bd_set_virtual_package() return value

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

 src/libbluray/bdj/native/org_videolan_Libbluray.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/libbluray/bdj/native/org_videolan_Libbluray.c b/src/libbluray/bdj/native/org_videolan_Libbluray.c
index aa63782..e2ba276 100644
--- a/src/libbluray/bdj/native/org_videolan_Libbluray.c
+++ b/src/libbluray/bdj/native/org_videolan_Libbluray.c
@@ -212,6 +212,7 @@ JNIEXPORT jint JNICALL Java_org_videolan_Libbluray_setVirtualPackageN(JNIEnv * e
         jclass cls, jlong np, jstring vpPath, jboolean psr_init_backup) {
     BLURAY* bd = (BLURAY*)(intptr_t)np;
     const char *path = NULL;
+    jint result;
 
     if (vpPath) {
         path = (*env)->GetStringUTFChars(env, vpPath, NULL);
@@ -219,11 +220,13 @@ JNIEXPORT jint JNICALL Java_org_videolan_Libbluray_setVirtualPackageN(JNIEnv * e
 
     BD_DEBUG(DBG_JNI|DBG_CRIT, "setVirtualPackageN(%s,%d)\n", path, (int)psr_init_backup);
 
-    bd_set_virtual_package(bd, path, (int)psr_init_backup);
+    result = bd_set_virtual_package(bd, path, (int)psr_init_backup);
 
     if (vpPath) {
         (*env)->ReleaseStringUTFChars(env, vpPath, path);
     }
+
+    return result;
 }
 
 JNIEXPORT jlong JNICALL Java_org_videolan_Libbluray_seekN(JNIEnv * env,



More information about the libbluray-devel mailing list