From: RĂ©mi Denis-Courmont Date: Sun, 8 Feb 2015 14:32:10 +0000 (+0200) Subject: libvlc: go to libvlc_Ended rather than libvlc_Stopped at EOS X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;ds=sidebyside;h=65ebc4b51ae63f569055971b534e936cbaa0142c;p=vlc libvlc: go to libvlc_Ended rather than libvlc_Stopped at EOS 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. --- diff --git a/lib/media_player.c b/lib/media_player.c index e36567e2ec..9fd10b89ec 100644 --- a/lib/media_player.c +++ b/lib/media_player.c @@ -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 );