[vlc-devel] [PATCH 2/2] bluray: handle BD_EVENT_IDLE

Petri Hintukainen phintuka at users.sourceforge.net
Mon Feb 10 12:27:02 CET 2014


---
 modules/access/bluray.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index 099bf3d..9f3f63d 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -1506,6 +1506,11 @@ static void blurayHandleEvent(demux_t *p_demux, const BD_EVENT *e)
         /* reset demuxer (partially decoded PES packets must be dropped) */
         blurayResetParser(p_demux);
         break;
+    case BD_EVENT_IDLE:
+        /* nothing to do (ex. BD-J is preparing menus, waiting user input or running animation) */
+        /* avoid busy loop (bd_read() returns no data) */
+        msleep( 40000 );
+        break;
 
     default:
         msg_Warn(p_demux, "event: %d param: %d", e->event, e->param);
-- 
1.8.3.2




More information about the vlc-devel mailing list