[vlc-devel] [PATCH 06/12] bluray: Don't silently ignore unhandled BD-events.

Hugo Beauzée-Luyssen beauze.h at gmail.com
Sun Jan 22 00:31:01 CET 2012


---
 modules/access/bluray.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index f26ff55..30728c7 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -477,18 +477,16 @@ static void     blurayHandleEvent( demux_t *p_demux, const BD_EVENT *e )
         if ( e->param < p_sys->i_title )
             blurayUpdateTitle( p_demux, e->param );
         break ;
-    case  BD_EVENT_PLAYITEM:
-        break ;
-    case BD_EVENT_AUDIO_STREAM:
-        break ;
     case BD_EVENT_CHAPTER:
         p_demux->info.i_update |= INPUT_UPDATE_SEEKPOINT;
         p_demux->info.i_seekpoint = 0;
         break ;
+    case BD_EVENT_PLAYITEM:
+    case BD_EVENT_AUDIO_STREAM:
     case BD_EVENT_ANGLE:
     case BD_EVENT_IG_STREAM:
     default:
-        msg_Warn( p_demux, "event: %d param: %d", e->event, e->param );
+        msg_Warn( p_demux, "Unhandled BD-event: %d. Param: %d", e->event, e->param );
         break ;
     }
 }
-- 
1.7.8.4




More information about the vlc-devel mailing list