]> git.sesse.net Git - vlc/blobdiff - modules/misc/lua/extension_thread.c
Extensions: call lua_DialogFlush after Lua call
[vlc] / modules / misc / lua / extension_thread.c
index c04b60a14215970713a980ff9e2784fb089af23b..ac3a4592e45fcc387d07d7654da0c8797582c11b 100644 (file)
@@ -204,16 +204,11 @@ void WaitForDeactivation( extension_t *p_ext )
 }
 
 /** Push a UI command */
-int __PushCommand( extension_t *p_ext,
-                   bool b_unique,
-                   int i_command,
-                   ... )
+int __PushCommand( extension_t *p_ext,  bool b_unique, int i_command,
+                   va_list args )
 {
     vlc_mutex_lock( &p_ext->p_sys->command_lock );
 
-    va_list args;
-    va_start( args, i_command );
-
     /* Create command */
     struct command_t *cmd = calloc( 1, sizeof( struct command_t ) );
     cmd->i_command = i_command;
@@ -246,8 +241,6 @@ int __PushCommand( extension_t *p_ext,
             break;
     }
 
-    va_end( args );
-
     /* Push command to the end of the queue */
     struct command_t *last = p_ext->p_sys->command;
     if( !last )