[vlc-devel] [PATCH] libvlc: libvlc_MediaInstanceStopped replaces libvlc_MediaInstanceReachedEnd

Pierre d'Herbemont pdherbemont at free.fr
Mon Mar 31 03:06:21 CEST 2008


On Mar 31, 2008, at 2:52 AM, Tanguy Krotoff wrote:

> I don't see any need for 2 different stop events.

The media_list_player, which is based on the media_player, needs to  
differenciate between a hard stop, and the end of the stream.

I do agree that we need a stopped event. Hence I would propose:

ReachedEnd: Sent when the media ends normally (read, without error,  
nor user intervention).
Stopped: Sent when the media ends without error or withour being at  
the end of the media.

Hence it's quite easy to  
libvlc_event_attach( {libvlc_MediaInstanceReachedEnd,  
libvlc_MediaInstanceStopped, libvlc_MediaInstanceEncounteredError},  
stopped_in_some_way ).

What do you think?

Pierre.





More information about the vlc-devel mailing list