[vlc-commits] MMAL: check that the vout is not windowed

Rémi Denis-Courmont git at videolan.org
Thu Oct 16 19:26:13 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Oct 14 22:48:03 2014 +0300| [77028e4a4e16adf8ec9df2ecfdd0f1ab8e579a31] | committer: Rémi Denis-Courmont

MMAL: check that the vout is not windowed

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=77028e4a4e16adf8ec9df2ecfdd0f1ab8e579a31
---

 modules/hw/mmal/vout.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/hw/mmal/vout.c b/modules/hw/mmal/vout.c
index e609cd6..4b690a7 100644
--- a/modules/hw/mmal/vout.c
+++ b/modules/hw/mmal/vout.c
@@ -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;



More information about the vlc-commits mailing list