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
9f47a3a5
Commit
9f47a3a5
authored
Feb 04, 2016
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua: use new ext dialog API
parent
183d5cda
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
modules/lua/libs/dialog.c
modules/lua/libs/dialog.c
+6
-5
No files found.
modules/lua/libs/dialog.c
View file @
9f47a3a5
...
...
@@ -33,6 +33,7 @@
#endif
#include <vlc_common.h>
#include <vlc_dialog.h>
#include <vlc_extensions.h>
#include "../vlc.h"
...
...
@@ -249,9 +250,9 @@ static int vlclua_dialog_delete( lua_State *L )
msg_Dbg
(
p_mgr
,
"Deleting dialog '%s'"
,
p_dlg
->
psz_title
);
p_dlg
->
b_kill
=
true
;
lua_SetDialogUpdate
(
L
,
0
);
// Reset the update flag
dialog_ExtensionU
pdate
(
p_mgr
,
p_dlg
);
vlc_ext_dialog_u
pdate
(
p_mgr
,
p_dlg
);
/* After
dialog_ExtensionU
pdate, the UI thread must take the lock asap and
/* After
vlc_ext_dialog_u
pdate, the UI thread must take the lock asap and
* then signal us when it's done deleting the dialog.
*/
msg_Dbg
(
p_mgr
,
"Waiting for the dialog to be deleted..."
);
...
...
@@ -358,7 +359,7 @@ static int vlclua_dialog_update( lua_State *L )
extension_dialog_t
*
p_dlg
=
*
pp_dlg
;
// Updating dialog immediately
dialog_ExtensionU
pdate
(
p_mgr
,
p_dlg
);
vlc_ext_dialog_u
pdate
(
p_mgr
,
p_dlg
);
// Reset update flag
lua_SetDialogUpdate
(
L
,
0
);
...
...
@@ -400,7 +401,7 @@ int lua_DialogFlush( lua_State *L )
int
i_ret
=
VLC_SUCCESS
;
if
(
lua_GetDialogUpdate
(
L
)
)
{
i_ret
=
dialog_ExtensionU
pdate
(
vlclua_get_this
(
L
),
p_dlg
);
i_ret
=
vlc_ext_dialog_u
pdate
(
vlclua_get_this
(
L
),
p_dlg
);
lua_SetDialogUpdate
(
L
,
0
);
}
...
...
@@ -996,7 +997,7 @@ static int vlclua_dialog_delete_widget( lua_State *L )
p_widget
->
b_kill
=
true
;
lua_SetDialogUpdate
(
L
,
0
);
// Reset update flag
int
i_ret
=
dialog_ExtensionU
pdate
(
p_mgr
,
p_dlg
);
int
i_ret
=
vlc_ext_dialog_u
pdate
(
p_mgr
,
p_dlg
);
if
(
i_ret
!=
VLC_SUCCESS
)
{
...
...
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