[libbluray-devel] Fix build without BD-J
hpi1
git at videolan.org
Tue Nov 18 21:54:55 CET 2014
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Nov 18 21:36:33 2014 +0200| [c0585bfabff14c66cc4c6cb64a9cc4152ae1ba23] | committer: hpi1
Fix build without BD-J
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=c0585bfabff14c66cc4c6cb64a9cc4152ae1ba23
---
src/libbluray/bluray.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index b19e7c8..e1aa662 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -1286,6 +1286,9 @@ static int _start_bdj(BLURAY *bd, unsigned title)
return 0;
}
}
+
+ memset(&bd->bdj_uo_mask, 0, sizeof(BD_UO_MASK));
+
return !bdj_process_event(bd->bdjava, BDJ_EVENT_START, title);
#else
BD_DEBUG(DBG_BLURAY | DBG_CRIT, "Title %d: BD-J not compiled in\n", title);
@@ -2968,7 +2971,6 @@ static int _play_bdj(BLURAY *bd, unsigned title)
int result;
bd->title_type = title_bdj;
- memset(&bd->bdj_uo_mask, 0, sizeof(BD_UO_MASK));
result = _start_bdj(bd, title);
if (result <= 0) {
More information about the libbluray-devel
mailing list