- /* Give control to the interface */
- if( p_intf->pf_run )
- p_intf->pf_run( p_intf );
- else
- {
- vlc_object_lock( p_intf );
- while( vlc_object_alive( p_intf ) )
- vlc_object_wait( p_intf );
- vlc_object_unlock( p_intf );
- }
-
- if( !p_intf->psz_switch_intf )
- {
- break;
- }
-
- /* Make sure the old interface is completely uninitialized */
- module_Unneed( p_intf, p_intf->p_module );
-
- /* Provide ability to switch the main interface on the fly */
- psz_intf = p_intf->psz_switch_intf;
- p_intf->psz_switch_intf = NULL;
-