Browse Source

Lua: do not allocate useless pipe on Win32

pull/7/head
Rémi Denis-Courmont 13 years ago
parent
commit
decf8e46e9
  1. 4
      modules/lua/intf.c
  2. 2
      modules/lua/vlc.h

4
modules/lua/intf.c

@ -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 ) )
{

2
modules/lua/vlc.h

@ -158,7 +158,9 @@ struct intf_sys_t
{
char *psz_filename;
lua_State *L;
#ifndef _WIN32
int fd[2];
#endif
vlc_thread_t thread;
};

Loading…
Cancel
Save