Fix input_state_changed()
authorChristophe Mutricy <xtophe@videolan.org>
Mon, 1 Sep 2008 18:36:47 +0000 (19:36 +0100)
committerChristophe Mutricy <xtophe@videolan.org>
Mon, 1 Sep 2008 19:58:28 +0000 (20:58 +0100)
Patch by Jakob Fries

src/control/media_player.c

index a90d177..0928900 100644 (file)
@@ -183,6 +183,7 @@ input_state_changed( const vlc_event_t * event, void * p_userdata )
         case END_S:
             libvlc_media_set_state( p_mi->p_md, libvlc_Ended, NULL);
             forwarded_event.type = libvlc_MediaPlayerEndReached;
+            break;
         case ERROR_S:
             libvlc_media_set_state( p_mi->p_md, libvlc_Error, NULL);
             forwarded_event.type = libvlc_MediaPlayerEncounteredError;