]> git.sesse.net Git - vlc/commitdiff
DirectFB: check that the vout is not windowed
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 14 Oct 2014 19:42:33 +0000 (22:42 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 16 Oct 2014 17:23:39 +0000 (20:23 +0300)
modules/video_output/directfb.c

index 23dcb65cd7c656ad4c4b18817d119b88f83ca5aa..5f4b3550651b80b120fe075edc610adda4f1f690 100644 (file)
@@ -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);