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

Linux FB: check that the vout is not windowed

parent 023487b8
......@@ -179,6 +179,9 @@ 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;
/* Allocate instance and initialize some members */
vd->sys = sys = calloc(1, sizeof(*sys));
if (!sys)
......@@ -254,7 +257,6 @@ static int Open(vlc_object_t *object)
Close(VLC_OBJECT(vd));
return VLC_EGENERIC;
}
vout_display_DeleteWindow(vd, NULL);
/* */
video_format_t fmt;
......
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