[libbluray-devel] commit: Fixed bd_start_bdj() return value (1=success, 0=error) (hpi1 )

git at videolan.org git at videolan.org
Mon Nov 15 16:02:58 CET 2010


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Nov 15 16:39:33 2010 +0200| [63a1a1396df68392180485d3ebf2db3d74d7d153] | committer: hpi1 

Fixed bd_start_bdj() return value (1=success, 0=error)

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

 src/libbluray/bluray.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 3a114b2..ae5c90a 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -1481,15 +1481,15 @@ int bd_start_bdj(BLURAY *bd, const char *start_object)
 #ifdef USING_BDJAVA
     if (bd->bdjava == NULL) {
         bd->bdjava = bdj_open(bd->device_path, start_object, bd, bd->regs);
-        return 0;
+        return !!bd->bdjava;
     } else {
         DEBUG(DBG_BLURAY | DBG_CRIT, "BD-J is already running (%p)\n", bd);
-        return -1;
+        return 1;
     }
 #else
     DEBUG(DBG_BLURAY | DBG_CRIT, "%s.bdjo: BD-J not compiled in (%p)\n", start_object, bd);
 #endif
-    return -1;
+    return 0;
 }
 
 void bd_stop_bdj(BLURAY *bd)



More information about the libbluray-devel mailing list