Oh, i understand now, but... how to avoid it? It seems i need to add more logics here, like set some extra vars and change player's state in some other places but not in event callbacks. Thanks. Btw, can i add sout line with libvlc_media_add_option() or it can be used only when creating vlc instance?