[vlc-devel] [PATCH v3 1/8] libvlc: player: send EndReached on input ended
Romain Vimont
rom1v at videolabs.io
Mon May 20 17:35:10 CEST 2019
Use the specific libvlc event when the input end is reached.
---
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 );
--
2.20.1
More information about the vlc-devel
mailing list