[libbluray-devel] commit: Added return value to _libbdplus_open() (hpi1 )

git at videolan.org git at videolan.org
Mon Oct 25 11:58:28 CEST 2010


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Oct 18 20:11:38 2010 +0300| [ff3022947ee86d712e913a8018365c64f0d9b07f] | committer: hpi1 

Added return value to _libbdplus_open()

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

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

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 9a5fbb8..c7608cf 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -478,7 +478,7 @@ static void _libbdplus_close(BLURAY *bd)
     bd->bdplus_fixup = NULL;
 }
 
-static void _libbdplus_open(BLURAY *bd, const char *keyfile_path)
+static int _libbdplus_open(BLURAY *bd, const char *keyfile_path)
 {
     _libbdplus_close(bd);
 
@@ -525,6 +525,8 @@ static void _libbdplus_open(BLURAY *bd, const char *keyfile_path)
 #endif
     } // file_open
     X_FREE(tmp);
+
+    return !!bd->bdplus;
 }
 
 static int _index_open(BLURAY *bd)



More information about the libbluray-devel mailing list