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

vout: inline vout_NewDisplayWindow into SplitterNewWindow and simplify

parent ba1d85d5
...@@ -1445,14 +1445,14 @@ static vout_window_t *SplitterNewWindow(vout_display_t *vd, const vout_window_cf ...@@ -1445,14 +1445,14 @@ static vout_window_t *SplitterNewWindow(vout_display_t *vd, const vout_window_cf
vout_window_cfg_t cfg = *cfg_ptr; vout_window_cfg_t cfg = *cfg_ptr;
cfg.is_standalone = true; cfg.is_standalone = true;
return vout_NewDisplayWindow(osys->vout, &cfg); return vout_window_New(VLC_OBJECT(osys->vout), "$window", &cfg);
} }
static void SplitterDelWindow(vout_display_t *vd, vout_window_t *window) static void SplitterDelWindow(vout_display_t *vd, vout_window_t *window)
{ {
vout_display_owner_sys_t *osys = vd->owner.sys; if (window != NULL)
vout_window_Delete(window);
vout_DeleteDisplayWindow(osys->vout, window); (void) vd;
} }
static void SplitterEvent(vout_display_t *vd, int event, va_list args) static void SplitterEvent(vout_display_t *vd, int event, va_list args)
......
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