<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jan 23, 2008, at 10:48 PM, jboileau wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">My reason to do that is to be able to start a new play from inside the <font size="2">libvlc_MediaInstanceReachedEnd event. I may not be doing things correctly but presently it simply hangs in my callback. Probably because I am trying to release something that is probably what is calling me back! :-) The media descriptor. I have circumvented the problem by posting myself a message (I am working under Windowzzzz) and this lets me do what I want since in the handler for this message I am out of the libvlc_MediaInstanceReachedEnd event callback. But I would rather not have to resort to this double callback scheme to get things working. </font><br></blockquote></div><br><div>This is a bit weird cause you shouldn't get issue when releasing the media descriptor in the media_instance callback, unless you are releasing the media instance that currently plays the media descriptor.</div><div><br class="webkit-block-placeholder"></div><div>Tell me if you encounters more trouble, I'll have a look over the weekend.</div><div><br class="webkit-block-placeholder"></div><div>Pierre.</div></body></html>