[libbluray-devel] Fix building without BD-J

hpi1 git at videolan.org
Thu Sep 27 14:11:14 CEST 2012


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Sep 27 15:05:50 2012 +0300| [efd4e8806d55d6267e7a93ddb4a1adbbc758508b] | committer: hpi1

Fix building without BD-J

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

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

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 322e7a6..f768eb7 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -1004,14 +1004,16 @@ static int _start_bdj(BLURAY *bd, unsigned title)
 #endif
 }
 
+#ifdef USING_BDJAVA
 static void _bdj_event(BLURAY *bd, unsigned ev, unsigned param)
 {
-#ifdef USING_BDJAVA
     if (bd->bdjava != NULL) {
         bdj_process_event(bd->bdjava, ev, param);
     }
-#endif
 }
+#else
+#define _bdj_event(bd, ev, param) do{}while(0)
+#endif
 
 static void _stop_bdj(BLURAY *bd)
 {



More information about the libbluray-devel mailing list