Commit 7d5dbada authored by Laurent Aimar's avatar Laurent Aimar

Fixed a segfault with opengl provider.

parent d5a5026d
......@@ -681,12 +681,29 @@ static vout_window_t *VoutDisplayNewWindow(vout_display_t *vd, const vout_window
{
vout_display_owner_sys_t *osys = vd->owner.sys;
#ifdef ALLOW_DUMMY_VOUT
if (!osys->vout->p) {
vout_window_cfg_t cfg_override = *cfg;
if (!var_InheritBool(osys->vout, "embedded-video"))
cfg_override.is_standalone = true;
return vout_window_New(VLC_OBJECT(osys->vout), NULL, &cfg_override);
}
#endif
return vout_NewDisplayWindow(osys->vout, vd, cfg);
}
static void VoutDisplayDelWindow(vout_display_t *vd, vout_window_t *window)
{
vout_display_owner_sys_t *osys = vd->owner.sys;
#ifdef ALLOW_DUMMY_VOUT
if (!osys->vout->p) {
if( window)
vout_window_Delete(window);
return;
}
#endif
vout_DeleteDisplayWindow(osys->vout, vd, 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