vlc | branch: master | Romain Vimont <ro...@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 <j...@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 ); _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits