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
e0eb0da8
Commit
e0eb0da8
authored
Jan 31, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lua: fix existent sd loading
parent
4a647cf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
modules/lua/libs/sd.c
modules/lua/libs/sd.c
+8
-2
No files found.
modules/lua/libs/sd.c
View file @
e0eb0da8
...
@@ -188,7 +188,10 @@ static int vlclua_sd_add_node( lua_State *L )
...
@@ -188,7 +188,10 @@ static int vlclua_sd_add_node( lua_State *L )
}
}
lua_pop
(
L
,
1
);
lua_pop
(
L
,
1
);
lua_getfield
(
L
,
-
1
,
"category"
);
lua_getfield
(
L
,
-
1
,
"category"
);
services_discovery_AddItem
(
p_sd
,
p_input
,
luaL_checkstring
(
L
,
-
1
)
);
if
(
lua_isstring
(
L
,
-
1
)
)
services_discovery_AddItem
(
p_sd
,
p_input
,
luaL_checkstring
(
L
,
-
1
)
);
else
services_discovery_AddItem
(
p_sd
,
p_input
,
NULL
);
input_item_t
**
udata
=
(
input_item_t
**
)
input_item_t
**
udata
=
(
input_item_t
**
)
lua_newuserdata
(
L
,
sizeof
(
input_item_t
*
)
);
lua_newuserdata
(
L
,
sizeof
(
input_item_t
*
)
);
*
udata
=
p_input
;
*
udata
=
p_input
;
...
@@ -244,7 +247,10 @@ static int vlclua_sd_add_item( lua_State *L )
...
@@ -244,7 +247,10 @@ static int vlclua_sd_add_item( lua_State *L )
msg_Warn
(
p_sd
,
"Item duration should be a number (in seconds)."
);
msg_Warn
(
p_sd
,
"Item duration should be a number (in seconds)."
);
lua_pop
(
L
,
1
);
lua_pop
(
L
,
1
);
lua_getfield
(
L
,
-
1
,
"category"
);
lua_getfield
(
L
,
-
1
,
"category"
);
services_discovery_AddItem
(
p_sd
,
p_input
,
luaL_checkstring
(
L
,
-
1
)
);
if
(
lua_isstring
(
L
,
-
1
)
)
services_discovery_AddItem
(
p_sd
,
p_input
,
luaL_checkstring
(
L
,
-
1
)
);
else
services_discovery_AddItem
(
p_sd
,
p_input
,
NULL
);
lua_pop
(
L
,
1
);
lua_pop
(
L
,
1
);
input_item_t
**
udata
=
(
input_item_t
**
)
input_item_t
**
udata
=
(
input_item_t
**
)
lua_newuserdata
(
L
,
sizeof
(
input_item_t
*
)
);
lua_newuserdata
(
L
,
sizeof
(
input_item_t
*
)
);
...
...
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