[vlc-commits] libvlc: player: send EndReached on input ended
    Romain Vimont 
    git at videolan.org
       
    Wed May 22 22:04:24 CEST 2019
    
    
  
vlc | branch: master | Romain Vimont <rom1v at videolabs.io> | Tue May 14 12:43:10 2019 +0200| [24c260aabdc9dad5f7b807f4dca2ed2afcbcdae1] | committer: Jean-Baptiste Kempf
libvlc: player: send EndReached on input ended
Use the specific libvlc event when the input end is reached.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=24c260aabdc9dad5f7b807f4dca2ed2afcbcdae1
---
 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 ddb5509721..35640b3e85 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -343,7 +343,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_Ended;
-        event.type = libvlc_MediaPlayerStopped;
+        event.type = libvlc_MediaPlayerEndReached;
 
         set_state( p_mi, libvlc_state, false );
         libvlc_event_send( &p_mi->event_manager, &event );
    
    
More information about the vlc-commits
mailing list