#include <vlc_vout.h>
#include "vlc_interface.h"
+#if defined( __APPLE__ ) || defined( WIN32 )
+#include "../control/libvlc_internal.h"
+#endif
#include "libvlc.h"
/*****************************************************************************
}
#if defined( __APPLE__ ) || defined( WIN32 )
+#include "control/libvlc_internal.h" /* libvlc_InternalWait */
/**
* MonitorLibVLCDeath: Used when b_should_run_on_first_thread is set.
*
libvlc_int_t * p_libvlc = p_intf->p_libvlc;
int canc = vlc_savecancel ();
- vlc_object_lock( p_libvlc );
- while( vlc_object_alive( p_libvlc ) )
- vlc_object_wait( p_libvlc );
- vlc_object_unlock( p_libvlc );
+ libvlc_InternalWait( p_libvlc );
vlc_object_kill( p_intf ); /* Kill the stupid first thread interface */
vlc_restorecancel (canc);