]> git.sesse.net Git - vlc/commitdiff
libvlc: go to libvlc_Ended rather than libvlc_Stopped at EOS
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 8 Feb 2015 14:32:10 +0000 (16:32 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 8 Feb 2015 14:35:55 +0000 (16:35 +0200)
This is what the tests expect, and was the final status before the
merge of ABORT and DEAD input events.

In fact, libvlc_Stopped does not really correspond to anything: it has
no STOPPED_S equivalent in the input thread state. The only way to
reach it is to call libvlc_media_player_stop() explicitly.
Regardless, lets keep it for backward compatibility.

lib/media_player.c

index e36567e2ec52a326792936a2b8d24b01bfaa743e..9fd10b89ec13d867052a46ce4b107560df4e293f 100644 (file)
@@ -304,7 +304,7 @@ input_event_changed( vlc_object_t * p_this, char const * psz_cmd,
     }
     else if( newval.i_int == INPUT_EVENT_DEAD )
     {
-        libvlc_state_t libvlc_state = libvlc_Stopped;
+        libvlc_state_t libvlc_state = libvlc_Ended;
         event.type = libvlc_MediaPlayerStopped;
 
         set_state( p_mi, libvlc_state, false );