Commit 2a0c3f87 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

libvlc: Make sure we don't attempt to delete the current event manager and...

libvlc: Make sure we don't attempt to delete the current event manager and object from one of its observer callback.

This is not yet supported.
parent 3c7efc2e
......@@ -215,6 +215,12 @@ libvlc_event_async_ensure_listener_removal(libvlc_event_manager_t * p_em, libvlc
{
if(!is_queue_initialized(p_em)) return;
if(current_thread_is_asynch_thread(p_em))
{
fprintf(stderr, "*** Error: releasing the last reference of the observed object from its callback thread is not (yet!) supported\n");
abort();
}
queue_lock(p_em);
pop_listener(p_em, listener);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment