]> git.sesse.net Git - vlc/commitdiff
skins2: fix corner case with old skins and fullscreen
authorErwan Tulou <erwan10@videolan.org>
Thu, 11 Mar 2010 08:20:58 +0000 (09:20 +0100)
committerErwan Tulou <erwan10@videolan.org>
Thu, 11 Mar 2010 08:26:48 +0000 (09:26 +0100)
For skins without video elements, fullscreen mode could be launched with the inner video kept hidden. Initializing the video control to NULL fixes it.

modules/gui/skins2/src/vout_manager.cpp

index 5e6eeaad81cf9b2f26f93a38e2bafff928b5d534..86bd5e1e9c530ab7eaabb993e77c5927239db6f4 100644 (file)
@@ -211,6 +211,10 @@ void* VoutManager::acceptWnd( vout_window_t* pWnd )
         // directly attach vout thread to it
         pCtrlVideo->attachVoutWindow( pVoutWindow );
     }
+    else
+    {
+        pVoutWindow->setCtrlVideo( NULL );
+    }
 
     // save vout characteristics
     m_SavedWndVec.push_back( SavedWnd( pWnd, pVoutWindow, pCtrlVideo ) );