]> git.sesse.net Git - vlc/commitdiff
bluray: handle BD_EVENT_IDLE
authorPetri Hintukainen <phintuka@users.sourceforge.net>
Mon, 10 Feb 2014 11:27:02 +0000 (13:27 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 10 Feb 2014 14:48:14 +0000 (15:48 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/access/bluray.c

index 652ba6f22c4424521c49c204f7534fb8f69571b5..91c18f7f4aaceff6552b4b363bb2e051987fd7be 100644 (file)
@@ -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);