[vlc-devel] LibVLC - how to close window on stop?

jboileau jboileau at gmail.com
Sun Mar 16 17:20:41 CET 2008


Hi,

I do the following sequence of calls when I want to stop the play of
my video. I expected the VLC window to close afterwards but it stays
open on the last frame played. How can I close/destroy the output
window?

libvlc_media_instance_stop
poll libvlc_media_instance_get_state until I get libvlc_Stopped or libvlc_Ended
libvlc_event_detach (because I am attached to the
libvlc_MediaInstanceReachedEnd event)
libvlc_media_instance_release
libvlc_release

What am I forgetting?


-- 
Jacques Boileau



More information about the vlc-devel mailing list