[libbluray-devel] Added BD_EVENT_IDLE: BD-J title running but no playlist playing
hpi1
git at videolan.org
Tue Feb 5 21:15:54 CET 2013
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Feb 5 14:03:35 2013 +0200| [1feae91fe402cc09349a0710cf1327afd47fb379] | committer: hpi1
Added BD_EVENT_IDLE: BD-J title running but no playlist playing
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=1feae91fe402cc09349a0710cf1327afd47fb379
---
src/libbluray/bluray.c | 6 ++++++
src/libbluray/bluray.h | 5 ++++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 1e52181..f8bae7b 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -2786,6 +2786,12 @@ static int _read_ext(BLURAY *bd, unsigned char *buf, int len, BD_EVENT *event)
return 0;
}
+ if (!bd->title && bd->title_type == title_bdj) {
+ /* BD-J title running but no playlist playing */
+ _queue_event(bd, BD_EVENT_IDLE, 0);
+ return 0;
+ }
+
int bytes = bd_read(bd, buf, len);
if (bytes == 0) {
diff --git a/src/libbluray/bluray.h b/src/libbluray/bluray.h
index 912940a..3633ee4 100644
--- a/src/libbluray/bluray.h
+++ b/src/libbluray/bluray.h
@@ -589,6 +589,9 @@ typedef enum {
* status
*/
+ /* Nothing to do. Playlist is not playing, but title applet is running. */
+ BD_EVENT_IDLE = 29,
+
/* Pop-Up menu available */
BD_EVENT_POPUP = 25, /* 0 - no, 1 - yes */
@@ -598,7 +601,7 @@ typedef enum {
/* 3D */
BD_EVENT_STEREOSCOPIC_STATUS = 27, /* 0 - 2D, 1 - 3D */
- /*BD_EVENT_LAST = 28, */
+ /*BD_EVENT_LAST = 29, */
} bd_event_e;
More information about the libbluray-devel
mailing list