[libbluray-devel] Remove unnecessary check from _play_bdj()
hpi1
git at videolan.org
Tue Aug 12 12:48:11 CEST 2014
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Aug 12 13:42:23 2014 +0300| [e0bbecfc295fe9e12c9835639be94681320a738e] | committer: hpi1
Remove unnecessary check from _play_bdj()
Fixes current title state and missing BD_EVENT_ERROR.
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=e0bbecfc295fe9e12c9835639be94681320a738e
---
ChangeLog | 2 ++
src/libbluray/bluray.c | 6 +-----
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e1073e4..299d997 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,5 @@
+- Fix missing BD_EVENT_ERROR when BD-J is not supported.
+
2014-08-03: Version 0.6.1
- Fix stream position when seamless angle change point is at clip boundary.
- Fix Mac OS X jni compilation
diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 92481f1..fa6d62c 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -2846,17 +2846,13 @@ static void _queue_initial_psr_events(BLURAY *bd)
static int _play_bdj(BLURAY *bd, unsigned title)
{
- if (!bd->disc_info.bdj_handled) {
- BD_DEBUG(DBG_BLURAY | DBG_CRIT, "Can't play BD-J title %d\n", title);
- return 0;
- }
-
int result;
bd->title_type = title_bdj;
result = _start_bdj(bd, title);
if (result <= 0) {
+ BD_DEBUG(DBG_BLURAY | DBG_CRIT, "Can't play BD-J title %d\n", title);
bd->title_type = title_undef;
_queue_event(bd, BD_EVENT_ERROR, BD_ERROR_BDJ);
}
More information about the libbluray-devel
mailing list