#include <vlc_common.h>
#include <vlc_interface.h>
+#include <vlc_fs.h>
#include "vlc.h"
#include "libs.h"
p_sys->L = L;
+ if( vlc_pipe( p_sys->fd ) )
+ {
+ lua_close( p_sys->L );
+ goto error;
+ }
+
if( vlc_clone( &p_sys->thread, Run, p_intf, VLC_THREAD_PRIORITY_LOW ) )
{
+ close( p_sys->fd[1] );
+ close( p_sys->fd[0] );
lua_close( p_sys->L );
goto error;
}
intf_thread_t *p_intf = (intf_thread_t*)p_this;
intf_sys_t *p_sys = p_intf->p_sys;
+ close( p_sys->fd[1] );
vlc_join( p_sys->thread, NULL );
- lua_close( p_sys->L );
+ lua_close( p_sys->L );
+ close( p_sys->fd[0] );
free( p_sys->psz_filename );
free( p_sys );
}