]> git.sesse.net Git - vlc/commitdiff
Qt4: restore the fullscreen controller
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 25 Jun 2008 19:05:44 +0000 (22:05 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 25 Jun 2008 19:05:44 +0000 (22:05 +0300)
modules/gui/qt4/qt4.cpp

index 42565b8439e71ed72b7dc9521448fc468ccd2d04..e663d754c87333cc29c5f74d7f7dbfeddb2558ba 100644 (file)
@@ -458,10 +458,6 @@ static int OpenWindow (vlc_object_t *obj)
 {
     vout_window_t *wnd = (vout_window_t *)obj;
 
-    /* TODO: should probably be in the libvlc core instead: */
-    if (!config_GetInt (obj, "embedded-video"))
-        return VLC_EGENERIC;
-
     intf_thread_t *intf = (intf_thread_t *)
         vlc_object_find_name (obj, "qt4", FIND_ANYWHERE);
     if (intf == NULL)
@@ -492,6 +488,12 @@ static int OpenWindow (vlc_object_t *obj)
     if (miP->isNull ())
         return VLC_EGENERIC;
 
+    if (config_GetInt (obj, "embedded-video") <= 0)
+    {
+        (*miP)->requestNotEmbeddedVideo (wnd->vout);
+        return VLC_EGENERIC;
+    }
+
     wnd->handle = (*miP)->requestVideo (wnd->vout, &wnd->pos_x, &wnd->pos_y,
                                         &wnd->width, &wnd->height);
     windowLock.unlock ();