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

index e609cd68186cb0a1ba6d192addae1c9eb751ee9d..4b690a74e63c884d34bf20a330813f53d15b5248 100644 (file)
@@ -185,6 +185,9 @@ static int Open(vlc_object_t *object)
     int ret = VLC_SUCCESS;
     unsigned i;
 
+    if (vout_display_IsWindowed(vd))
+        return VLC_EGENERIC;
+
     sys = calloc(1, sizeof(struct vout_display_sys_t));
     if (!sys)
         return VLC_ENOMEM;