[vlc-commits] libvlc: go to libvlc_Ended rather than libvlc_Stopped at EOS

Rémi Denis-Courmont git at videolan.org
Sun Feb 8 15:35:57 CET 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Feb  8 16:32:10 2015 +0200| [65ebc4b51ae63f569055971b534e936cbaa0142c] | committer: Rémi Denis-Courmont

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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=65ebc4b51ae63f569055971b534e936cbaa0142c
---

 lib/media_player.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/media_player.c b/lib/media_player.c
index e36567e..9fd10b8 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 );



More information about the vlc-commits mailing list