]> git.sesse.net Git - vlc/commitdiff
* forward port of [15504]
authorCyril Deguet <asmax@videolan.org>
Mon, 1 May 2006 12:12:03 +0000 (12:12 +0000)
committerCyril Deguet <asmax@videolan.org>
Mon, 1 May 2006 12:12:03 +0000 (12:12 +0000)
modules/gui/skins2/src/vlcproc.cpp

index df80d04400ff9bee33c8f8ba00ff711424070fd7..649f47f27eb1c375c51971641e80333f1b90ece5 100644 (file)
@@ -227,7 +227,7 @@ void VlcProc::dropVout()
     {
         if( vout_Control( m_pVout, VOUT_REPARENT ) != VLC_SUCCESS )
             vout_Control( m_pVout, VOUT_CLOSE );
-      //  m_pVout = NULL;
+        m_pVout = NULL;
     }
 }
 
@@ -625,13 +625,13 @@ void *VlcProc::getWindow( intf_thread_t *pIntf, vout_thread_t *pVout,
                           unsigned int *pHeightHint )
 {
     VlcProc *pThis = pIntf->p_sys->p_vlcProc;
-    pThis->m_pVout = pVout;
     if( pThis->m_handleSet.empty() )
     {
         return NULL;
     }
     else
     {
+        pThis->m_pVout = pVout;
         // Get the window handle
         void *pWindow = *pThis->m_handleSet.begin();
         // Post a resize vout command