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
39ddd4de
Commit
39ddd4de
authored
Mar 18, 2012
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua: cosmetics
parent
525e092d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
share/lua/intf/modules/host.lua
share/lua/intf/modules/host.lua
+10
-9
No files found.
share/lua/intf/modules/host.lua
View file @
39ddd4de
...
...
@@ -114,11 +114,12 @@ function host()
end
end
local
function
write_console
(
client
,
data
)
-- FIXME: this method shouldn't be needed. vlc.net.write should just work
io.write
(
data
or
client
.
buffer
)
return
string.len
(
data
or
client
.
buffer
)
end
local
function
write_console
(
client
,
data
)
-- FIXME: this method shouldn't be needed. vlc.net.write should
-- just work
io.write
(
data
or
client
.
buffer
)
return
string.len
(
data
or
client
.
buffer
)
end
local
function
read_console
(
client
,
len
)
-- Read stdin from a windows console (beware: select/poll doesn't work!)
...
...
@@ -164,18 +165,18 @@ function host()
if
t
==
client_type
.
net
or
t
==
client_type
.
telnet
then
w
=
send
r
=
recv
else
if
t
==
client_type
.
stdio
or
t
==
client_type
.
fifo
then
elseif
t
==
client_type
.
stdio
or
t
==
client_type
.
fifo
then
if
vlc
.
win
and
t
==
client_type
.
stdio
then
vlc
.
win
.
console_init
()
w
=
write_console
w
=
write_console
r
=
read_console
else
w
=
write
w
=
write
r
=
read
end
else
error
(
"Unknown client type"
,
t
)
end
end
end
local
client
=
{
-- data
rfd
=
fd
,
...
...
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