extern "C"
{
#include <errno.h> /* ENOMEM */
-#include <stdlib.h> /* free() */
-#include <string.h> /* strerror() */
#include <vlc/vlc.h>
#include <vlc_interface.h>
vlc_object_detach( p_vout->p_sys->p_event );
/* Kill RunQtThread */
- p_vout->p_sys->p_event->b_die = VLC_TRUE;
+ vlc_object_kill( p_vout->p_sys->p_event );
CloseDisplay(p_vout);
vlc_thread_join( p_vout->p_sys->p_event );