[vlc-devel] commit: Test suite start to prove its usefulness. (oops). (Pierre d' Herbemont )
git version control
git at videolan.org
Tue Jun 9 07:35:52 CEST 2009
vlc | branch: 1.0-bugfix | Pierre d'Herbemont <pdherbemont at free.fr> | Thu Jun 4 22:52:55 2009 -0700| [959e45846f587b7472093efce1088d9b5889fe85] | committer: Pierre d'Herbemont
Test suite start to prove its usefulness. (oops).
It should be improved.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=959e45846f587b7472093efce1088d9b5889fe85
---
src/control/event_async.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/control/event_async.c b/src/control/event_async.c
index e8f9a08..c16c9d3 100644
--- a/src/control/event_async.c
+++ b/src/control/event_async.c
@@ -157,6 +157,12 @@ void
libvlc_event_async_fini(libvlc_event_manager_t * p_em)
{
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();
+ }
vlc_thread_t thread = queue(p_em)->thread;
if(thread)
More information about the vlc-devel
mailing list