[vlc-commits] skins2: remove a fallback when choosing a video	control
    Erwan Tulou 
    git at videolan.org
       
    Tue Apr 28 16:38:58 CEST 2015
    
    
  
vlc/vlc-2.2 | branch: master | Erwan Tulou <erwan10 at videolan.org> | Tue Apr 28 15:21:24 2015 +0200| [e2c4691e3d75fca23ca8255ad530bf5d26e6371b] | committer: Erwan Tulou
skins2: remove a fallback when choosing a video control
This fallback was an attempt to recover when a skin is poorly designed,
but it causes problems under some circumstances. So let's remove it !
(cherry picked from commit 1d2608d4aa0aa9fe30b9fde5a825f14a9941347c)
Signed-off-by: Erwan Tulou <erwan10 at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=e2c4691e3d75fca23ca8255ad530bf5d26e6371b
---
 modules/gui/skins2/src/vout_manager.cpp |    9 ---------
 1 file changed, 9 deletions(-)
diff --git a/modules/gui/skins2/src/vout_manager.cpp b/modules/gui/skins2/src/vout_manager.cpp
index f6ea8eb..5c9e67c 100644
--- a/modules/gui/skins2/src/vout_manager.cpp
+++ b/modules/gui/skins2/src/vout_manager.cpp
@@ -182,15 +182,6 @@ CtrlVideo* VoutManager::getBestCtrlVideo( )
         }
     }
 
-    // as a fallback, look up any video control that is unused
-    for( it = m_pCtrlVideoVec.begin(); it != m_pCtrlVideoVec.end(); ++it )
-    {
-        if( !(*it)->isUsed() )
-        {
-            return (*it);
-        }
-    }
-
     return NULL;
 }
 
    
    
More information about the vlc-commits
mailing list