Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
decf8e46
Commit
decf8e46
authored
Jul 07, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lua: do not allocate useless pipe on Win32
parent
deb38e43
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
modules/lua/intf.c
modules/lua/intf.c
+4
-0
modules/lua/vlc.h
modules/lua/vlc.h
+2
-0
No files found.
modules/lua/intf.c
View file @
decf8e46
...
@@ -362,11 +362,15 @@ static int Start_LuaIntf( vlc_object_t *p_this, const char *name )
...
@@ -362,11 +362,15 @@ static int Start_LuaIntf( vlc_object_t *p_this, const char *name )
p_sys
->
L
=
L
;
p_sys
->
L
=
L
;
#ifndef _WIN32
if
(
vlc_pipe
(
p_sys
->
fd
)
)
if
(
vlc_pipe
(
p_sys
->
fd
)
)
{
{
lua_close
(
p_sys
->
L
);
lua_close
(
p_sys
->
L
);
goto
error
;
goto
error
;
}
}
#else
# define close(fd) (void)0
#endif
if
(
vlc_clone
(
&
p_sys
->
thread
,
Run
,
p_intf
,
VLC_THREAD_PRIORITY_LOW
)
)
if
(
vlc_clone
(
&
p_sys
->
thread
,
Run
,
p_intf
,
VLC_THREAD_PRIORITY_LOW
)
)
{
{
...
...
modules/lua/vlc.h
View file @
decf8e46
...
@@ -158,7 +158,9 @@ struct intf_sys_t
...
@@ -158,7 +158,9 @@ struct intf_sys_t
{
{
char
*
psz_filename
;
char
*
psz_filename
;
lua_State
*
L
;
lua_State
*
L
;
#ifndef _WIN32
int
fd
[
2
];
int
fd
[
2
];
#endif
vlc_thread_t
thread
;
vlc_thread_t
thread
;
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment