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

display: attach window automatically

Rather than attach the window to the same vout display for each plugin
sequentially probed, attach the window once after probe.
parent 5b3cb0eb
......@@ -113,6 +113,10 @@ static vout_display_t *vout_display_New(vlc_object_t *obj,
} else {
vd->module = NULL;
}
if (cfg->window != NULL)
vout_display_window_Attach(cfg->window, vd);
return vd;
}
......@@ -643,8 +647,6 @@ static vout_window_t *VoutDisplayNewWindow(vout_display_t *vd, unsigned type)
return NULL;
if (type != VOUT_WINDOW_TYPE_INVALID && type != window->type)
return NULL;
vout_display_window_Attach(window, vd);
return window;
}
......@@ -1231,8 +1233,6 @@ static vout_window_t *SplitterNewWindow(vout_display_t *vd, unsigned type)
return NULL;
if (type != VOUT_WINDOW_TYPE_INVALID && type != window->type)
return NULL;
vout_display_window_Attach(window, vd);
return window;
}
......
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