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

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


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Oct 14 22:42:33 2014 +0300| [023487b8b314694397e1b6b0ef1f375b420f24fe] | committer: Rémi Denis-Courmont

DirectFB: check that the vout is not windowed

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

 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 23dcb65..5f4b355 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);



More information about the vlc-commits mailing list