Commit decf8e46 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Lua: do not allocate useless pipe on Win32

parent deb38e43
......@@ -362,11 +362,15 @@ static int Start_LuaIntf( vlc_object_t *p_this, const char *name )
p_sys->L = L;
#ifndef _WIN32
if( vlc_pipe( p_sys->fd ) )
{
lua_close( p_sys->L );
goto error;
}
#else
# define close(fd) (void)0
#endif
if( vlc_clone( &p_sys->thread, Run, p_intf, VLC_THREAD_PRIORITY_LOW ) )
{
......
......@@ -158,7 +158,9 @@ struct intf_sys_t
{
char *psz_filename;
lua_State *L;
#ifndef _WIN32
int fd[2];
#endif
vlc_thread_t thread;
};
......
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