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
66e5c332
Commit
66e5c332
authored
Jul 06, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lua: use vlc_mwait_i11e()
parent
bae1e6a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
modules/lua/libs/misc.c
modules/lua/libs/misc.c
+10
-1
No files found.
modules/lua/libs/misc.c
View file @
66e5c332
...
...
@@ -34,11 +34,14 @@
# include "config.h"
#endif
#include <math.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_meta.h>
#include <vlc_interface.h>
#include <vlc_keys.h>
#include <vlc_interrupt.h>
#include "../vlc.h"
#include "../libs.h"
...
...
@@ -132,7 +135,13 @@ static int vlclua_mdate( lua_State *L )
static
int
vlclua_mwait
(
lua_State
*
L
)
{
double
f
=
luaL_checknumber
(
L
,
1
);
mwait
(
(
int64_t
)
f
);
vlc_interrupt_t
*
oint
=
vlclua_set_interrupt
(
L
);
int
ret
=
vlc_mwait_i11e
(
llround
(
f
)
);
vlc_interrupt_set
(
oint
);
if
(
ret
)
return
luaL_error
(
L
,
"Interrupted."
);
return
0
;
}
...
...
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