Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
c0e20d5c
Commit
c0e20d5c
authored
May 27, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lua with --disable-vlm
parent
85c5476d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
modules/misc/lua/vlm.c
modules/misc/lua/vlm.c
+14
-1
No files found.
modules/misc/lua/vlm.c
View file @
c0e20d5c
...
@@ -46,21 +46,28 @@
...
@@ -46,21 +46,28 @@
*****************************************************************************/
*****************************************************************************/
int
vlclua_vlm_new
(
lua_State
*
L
)
int
vlclua_vlm_new
(
lua_State
*
L
)
{
{
#ifdef ENABLE_VLM
vlc_object_t
*
p_this
=
vlclua_get_this
(
L
);
vlc_object_t
*
p_this
=
vlclua_get_this
(
L
);
vlm_t
*
p_vlm
=
vlm_New
(
p_this
);
vlm_t
*
p_vlm
=
vlm_New
(
p_this
);
if
(
!
p_vlm
)
if
(
!
p_vlm
)
return
luaL_error
(
L
,
"Cannot start VLM."
)
;
goto
err
;
__vlclua_push_vlc_object
(
L
,
(
vlc_object_t
*
)
p_vlm
,
NULL
);
__vlclua_push_vlc_object
(
L
,
(
vlc_object_t
*
)
p_vlm
,
NULL
);
return
1
;
return
1
;
err:
#endif
return
luaL_error
(
L
,
"Cannot start VLM."
);
}
}
int
vlclua_vlm_delete
(
lua_State
*
L
)
int
vlclua_vlm_delete
(
lua_State
*
L
)
{
{
#ifdef ENABLE_VLM
vlm_t
*
p_vlm
=
(
vlm_t
*
)
vlclua_checkobject
(
L
,
1
,
VLC_OBJECT_GENERIC
);
vlm_t
*
p_vlm
=
(
vlm_t
*
)
vlclua_checkobject
(
L
,
1
,
VLC_OBJECT_GENERIC
);
vlm_Delete
(
p_vlm
);
vlm_Delete
(
p_vlm
);
#endif
return
0
;
return
0
;
}
}
#ifdef ENABLE_VLM
void
push_message
(
lua_State
*
L
,
vlm_message_t
*
message
);
void
push_message
(
lua_State
*
L
,
vlm_message_t
*
message
);
void
push_message
(
lua_State
*
L
,
vlm_message_t
*
message
)
void
push_message
(
lua_State
*
L
,
vlm_message_t
*
message
)
{
{
...
@@ -98,3 +105,9 @@ int vlclua_vlm_execute_command( lua_State *L )
...
@@ -98,3 +105,9 @@ int vlclua_vlm_execute_command( lua_State *L )
vlm_MessageDelete
(
message
);
vlm_MessageDelete
(
message
);
return
1
+
vlclua_push_ret
(
L
,
i_ret
);
return
1
+
vlclua_push_ret
(
L
,
i_ret
);
}
}
#else
int
vlclua_vlm_execute_command
(
lua_State
*
L
)
{
return
1
+
vlclua_push_ret
(
L
,
VLC_EGENERIC
);
}
#endif
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