From 023487b8b314694397e1b6b0ef1f375b420f24fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= Date: Tue, 14 Oct 2014 22:42:33 +0300 Subject: [PATCH] DirectFB: check that the vout is not windowed --- modules/video_output/directfb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/video_output/directfb.c b/modules/video_output/directfb.c index 23dcb65cd7..5f4b355065 100644 --- a/modules/video_output/directfb.c +++ b/modules/video_output/directfb.c @@ -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)) + return VLC_EGENERIC; + 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); -- GitLab