]> git.sesse.net Git - vlc/commitdiff
libvlc: on stop, fire a stopped event, not end reached
authorFilippo Carone <littlejohn@videolan.org>
Sun, 21 Dec 2008 15:39:26 +0000 (16:39 +0100)
committerFilippo Carone <littlejohn@videolan.org>
Mon, 22 Dec 2008 09:07:06 +0000 (10:07 +0100)
src/control/media_player.c

index 8cd0cefad58efbdfc5c06e12a25d980819348153..58e8350cf34a46d6e2c64f0f19a9ced082b926ef 100644 (file)
@@ -647,7 +647,7 @@ void libvlc_media_player_stop( libvlc_media_player_t *p_mi,
 
         /* Construct and send the event */
         libvlc_event_t event;
-        event.type = libvlc_MediaPlayerEndReached;
+        event.type = libvlc_MediaPlayerStopped;
         libvlc_event_send( p_mi->p_event_manager, &event );
     }