[vlc-commits] bluray: handle BD_EVENT_IDLE

Petri Hintukainen git at videolan.org
Mon Feb 10 16:07:04 CET 2014


vlc | branch: master | Petri Hintukainen <phintuka at users.sourceforge.net> | Mon Feb 10 13:27:02 2014 +0200| [d4ee3d507f90f04566603a6db9ba6b45ce2faf60] | committer: Jean-Baptiste Kempf

bluray: handle BD_EVENT_IDLE

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index 652ba6f..91c18f7 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);



More information about the vlc-commits mailing list