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
fe3ca6c0
Commit
fe3ca6c0
authored
Mar 24, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua: do not check for should_die (always false here)
parent
33cc9972
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
share/lua/intf/cli.lua
share/lua/intf/cli.lua
+1
-1
share/lua/intf/dumpmeta.lua
share/lua/intf/dumpmeta.lua
+2
-2
share/lua/intf/modules/host.lua
share/lua/intf/modules/host.lua
+1
-1
No files found.
share/lua/intf/cli.lua
View file @
fe3ca6c0
...
@@ -788,7 +788,7 @@ h:listen( config.hosts or config.host or "*console" )
...
@@ -788,7 +788,7 @@ h:listen( config.hosts or config.host or "*console" )
password
=
config
.
password
or
"admin"
password
=
config
.
password
or
"admin"
--[[ The main loop ]]
--[[ The main loop ]]
while
not
vlc
.
misc
.
should_die
()
do
while
true
do
local
write
,
read
=
h
:
accept_and_select
()
local
write
,
read
=
h
:
accept_and_select
()
for
_
,
client
in
pairs
(
write
)
do
for
_
,
client
in
pairs
(
write
)
do
...
...
share/lua/intf/dumpmeta.lua
View file @
fe3ca6c0
...
@@ -30,11 +30,11 @@ dumpmeta.lua: dump a file's meta data on stdout/stderr
...
@@ -30,11 +30,11 @@ dumpmeta.lua: dump a file's meta data on stdout/stderr
local
item
local
item
repeat
repeat
item
=
vlc
.
input
.
item
()
item
=
vlc
.
input
.
item
()
until
(
item
and
item
:
is_preparsed
())
or
vlc
.
misc
.
should_die
()
until
(
item
and
item
:
is_preparsed
())
-- preparsing doesn't always provide all the information we want (like duration)
-- preparsing doesn't always provide all the information we want (like duration)
repeat
repeat
until
item
:
stats
()[
"demux_read_bytes"
]
>
0
or
vlc
.
misc
.
should_die
()
until
item
:
stats
()[
"demux_read_bytes"
]
>
0
vlc
.
msg
.
info
(
"name: "
..
item
:
name
())
vlc
.
msg
.
info
(
"name: "
..
item
:
name
())
vlc
.
msg
.
info
(
"uri: "
..
vlc
.
strings
.
decode_uri
(
item
:
uri
()))
vlc
.
msg
.
info
(
"uri: "
..
vlc
.
strings
.
decode_uri
(
item
:
uri
()))
...
...
share/lua/intf/modules/host.lua
View file @
fe3ca6c0
...
@@ -38,7 +38,7 @@ Example use:
...
@@ -38,7 +38,7 @@ Example use:
--or h:listen( { "localhost:4212", "*console" } )
--or h:listen( { "localhost:4212", "*console" } )
-- The main loop
-- The main loop
while
not vlc.misc.should_die()
do
while
true
do
-- accept new connections and select active clients
-- accept new connections and select active clients
local write, read = h:accept_and_select()
local write, read = h:accept_and_select()
...
...
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