[vlc-devel] libvlc_MediaInstanceReachedEnd called twice

Pierre d'Herbemont pdherbemont at free.fr
Thu Feb 28 01:00:37 CET 2008

On Feb 27, 2008, at 8:41 PM, jboileau wrote:

> Hum... Looking at the code in media_instance.c in the function
> input_state_changed where the event is sent from, I can see that the u
> member of the event struct is left uninitialized (I think it should at
> least get initialized to 0). It is then not a good idea to rely on an
> uninitialized variable to discern between the two times the event is
> triggered. The best I can do is ignore every other
> libvlc_MediaInstanceReachedEnd event. Something like:

I have committed something that may help you.

Hope this helps :)


More information about the vlc-devel mailing list