]> git.sesse.net Git - vlc/blobdiff - modules/gui/wxwidgets/video.cpp
psz_intf_switch was read-only: remove dead code
[vlc] / modules / gui / wxwidgets / video.cpp
index 347490865a220fcf120a6bf0ad1f67ef5df4a7a0..2eace2d6a920f0467bc7d15fcfe9a210e9f35f21 100644 (file)
@@ -155,16 +155,8 @@ VideoWindow::~VideoWindow()
     vlc_mutex_lock( &lock );
     if( p_vout )
     {
-        if( !p_intf->psz_switch_intf )
-        {
-            if( vout_Control( p_vout, VOUT_CLOSE ) != VLC_SUCCESS )
-                vout_Control( p_vout, VOUT_REPARENT, 0 );
-        }
-        else
-        {
-            if( vout_Control( p_vout, VOUT_REPARENT, 0 ) != VLC_SUCCESS )
-                vout_Control( p_vout, VOUT_CLOSE );
-        }
+        if( vout_Control( p_vout, VOUT_CLOSE ) != VLC_SUCCESS )
+            vout_Control( p_vout, VOUT_REPARENT, 0 );
     }
 
     p_intf->pf_request_window = NULL;