skins2: don't resize video if set up not to do so.
authorErwan Tulou <erwan10@videolan.org>
Sat, 14 Aug 2010 09:49:18 +0000 (11:49 +0200)
committerErwan Tulou <erwan10@videolan.org>
Sat, 14 Aug 2010 11:38:08 +0000 (13:38 +0200)
This bug has become more conspicuous in vlc1.2, because of some enhancement in
 the vout reuse (width/height no longer a limitation)

modules/gui/skins2/controls/ctrl_video.cpp

index 5008d6d..6409c44 100644 (file)
@@ -133,6 +133,9 @@ void CtrlVideo::unsetLayout()
 
 void CtrlVideo::resizeControl( int width, int height )
 {
+    if( !m_bAutoResize )
+        return;
+
     WindowManager &rWindowManager =
         getIntf()->p_sys->p_theme->getWindowManager();