[libbluray-devel] Always log version in bd_open()

hpi1 git at videolan.org
Mon Jan 9 10:25:29 CET 2012


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Jan  2 13:18:58 2012 +0200| [e6dbcfee94e965524d39c60e42e10becc39d3e27] | committer: hpi1

Always log version in bd_open()

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

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

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 05a08f3..ae301d7 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -913,6 +913,8 @@ static void _fill_disc_info(BLURAY *bd)
 
 BLURAY *bd_open(const char* device_path, const char* keyfile_path)
 {
+    BD_DEBUG(DBG_BLURAY, "libbluray version "BLURAY_VERSION_STRING"\n");
+
     if (!device_path) {
         BD_DEBUG(DBG_BLURAY | DBG_CRIT, "No device path provided!\n");
         return NULL;
@@ -920,8 +922,6 @@ BLURAY *bd_open(const char* device_path, const char* keyfile_path)
 
     BLURAY *bd = calloc(1, sizeof(BLURAY));
 
-    BD_DEBUG(DBG_BLURAY, "libbluray version "BLURAY_VERSION_STRING"\n");
-
     bd->device_path = (char*)malloc(strlen(device_path) + 1);
     strcpy(bd->device_path, device_path);
 



More information about the libbluray-devel mailing list