Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
60a57b83
Commit
60a57b83
authored
Dec 27, 2009
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Misc lua interface changes.
parent
abfa2cef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
share/lua/intf/dummy.lua
share/lua/intf/dummy.lua
+2
-1
share/lua/intf/http.lua
share/lua/intf/http.lua
+1
-1
share/lua/intf/rc.lua
share/lua/intf/rc.lua
+1
-1
No files found.
share/lua/intf/dummy.lua
View file @
60a57b83
...
...
@@ -5,7 +5,8 @@ This is the `dummy' VLC Lua interface module.
Please specify a VLC Lua interface to load with the --lua-intf option.
VLC Lua interface modules include: `rc', `telnet' and `http'.
For example: vlc -I lua --lua-intf rc
You can also use the alternate syntax: vlc -I "lua{intf=rc}"]]
You can also use the alternate syntax: vlc -I "lua{intf=rc}"
See share/lua/intf/README.txt for more information about lua interface modules.]]
for
line
in
string.gmatch
(
msg
,
"([^\n]+)\n*"
)
do
vlc
.
msg
.
err
(
line
)
...
...
share/lua/intf/http.lua
View file @
60a57b83
...
...
@@ -220,7 +220,7 @@ end
function
parse_url_request
(
request
)
if
not
request
then
return
{}
end
t
=
{}
local
t
=
{}
for
k
,
v
in
string.gmatch
(
request
,
"([^=&]+)=?([^=&]*)"
)
do
local
k_
=
vlc
.
strings
.
decode_uri
(
k
)
local
v_
=
vlc
.
strings
.
decode_uri
(
v
)
...
...
share/lua/intf/rc.lua
View file @
60a57b83
...
...
@@ -87,7 +87,7 @@ function set_env(name,client,value)
if
value
then
local
var
,
val
=
split_input
(
value
)
if
val
then
s
=
string.gsub
(
val
,
"
\"
(.*)\"","
%
1
")
local
s
=
string.gsub
(
val
,
"
\"
(.*)\"","
%
1
")
if type(client.env[var])==type(1) then
client.env[var] = tonumber(s)
else
...
...
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