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

DirectFB: check that the vout is not windowed

parent 42b0285a
......@@ -76,6 +76,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))
vd->sys = sys = calloc(1, sizeof(*sys));
if (!sys)
return VLC_ENOMEM;
......@@ -111,8 +114,6 @@ static int Open(vlc_object_t *object)
primary->GetSize(primary, &width, &height);
vout_display_DeleteWindow(vd, NULL);
/* */
video_format_t fmt;
video_format_ApplyRotation(&fmt, &vd->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