Commit 09b7f634 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vout_window: inline vout_window_Control()

parent 1697d2f3
...@@ -148,7 +148,16 @@ static inline int vout_window_vaControl(vout_window_t *window, int query, ...@@ -148,7 +148,16 @@ static inline int vout_window_vaControl(vout_window_t *window, int query,
* *
* @warning The caller must own the window, as vout_window_t is not thread safe. * @warning The caller must own the window, as vout_window_t is not thread safe.
*/ */
VLC_API int vout_window_Control(vout_window_t *, int query, ...); static inline int vout_window_Control(vout_window_t *window, int query, ...)
{
va_list ap;
int ret;
va_start(ap, query);
ret = vout_window_vaControl(window, query, ap);
va_end(ap);
return ret;
}
/** /**
* Configures the window manager state for this window. * Configures the window manager state for this window.
......
...@@ -623,7 +623,6 @@ vout_OSDSlider ...@@ -623,7 +623,6 @@ vout_OSDSlider
vout_OSDText vout_OSDText
vout_Request vout_Request
vout_window_New vout_window_New
vout_window_Control
vout_window_Delete vout_window_Delete
vout_NewDisplay vout_NewDisplay
vout_DeleteDisplay vout_DeleteDisplay
......
...@@ -138,14 +138,3 @@ void vout_window_Delete(vout_window_t *window) ...@@ -138,14 +138,3 @@ void vout_window_Delete(vout_window_t *window)
vlc_module_unload(w->module, vout_window_stop, window); vlc_module_unload(w->module, vout_window_stop, window);
vlc_object_release(window); vlc_object_release(window);
} }
int vout_window_Control(vout_window_t *window, int query, ...)
{
va_list args;
va_start(args, query);
int ret = window->control(window, query, args);
va_end(args);
return ret;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment