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

caca: check that the vout is not windowed

parent dced9817
......@@ -88,6 +88,8 @@ static int Open(vlc_object_t *object)
vout_display_t *vd = (vout_display_t *)object;
vout_display_sys_t *sys;
if (vout_display_IsWindowed(vd))
return VLC_EGENERIC;
#if !defined(__APPLE__) && !defined(_WIN32)
# ifndef X_DISPLAY_MISSING
if (!vlc_xlib_init(object))
......@@ -166,7 +168,6 @@ static int Open(vlc_object_t *object)
msg_Err(vd, "cannot initialize libcaca");
goto error;
}
vout_display_DeleteWindow(vd, NULL);
if (vd->cfg->display.title)
caca_set_display_title(sys->dp,
......
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