]> git.sesse.net Git - vlc/commitdiff
Fixed video request when the qt4 embedded slot is already taken.
authorLaurent Aimar <fenrir@videolan.org>
Mon, 4 Aug 2008 18:31:18 +0000 (20:31 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Mon, 4 Aug 2008 18:31:18 +0000 (20:31 +0200)
modules/gui/qt4/qt4.cpp

index efd46d61754e7d820d95182b7b28070351fa67a1..e5d3e280dca1a238cd7d9e24ca4955d5999d4dbc 100644 (file)
@@ -518,6 +518,10 @@ static int WindowOpen (vlc_object_t *obj)
     wnd->handle = (*miP)->requestVideo (wnd->vout, &wnd->pos_x, &wnd->pos_y,
                                         &wnd->width, &wnd->height);
     windowLock.unlock ();
+
+    if (!wnd->handle)
+        return VLC_EGENERIC;
+
     wnd->control = WindowControl;
     wnd->p_private = miP;
     return VLC_SUCCESS;