If an interface exits "early" it should reparent (although reparenting
is no safer). Otherwise, the core will ensure that the video output was
safely closed before it terminates the interface.
if( p_vout )
{
- if( vout_Control( p_vout, VOUT_CLOSE ) != VLC_SUCCESS )
- vout_Control( p_vout, VOUT_REPARENT, 0 );
+ vout_Control( p_vout, VOUT_REPARENT, 0 );
vlc_object_release( p_vout );
}
// Reparent the vout window
if( m_pVout )
{
- if( vout_Control( m_pVout, VOUT_REPARENT, 0 ) != VLC_SUCCESS )
- vout_Control( m_pVout, VOUT_CLOSE );
+ vout_Control( m_pVout, VOUT_REPARENT, 0 );
}
}
{
if( m_pVout )
{
- if( vout_Control( m_pVout, VOUT_REPARENT, 0 ) != VLC_SUCCESS )
- vout_Control( m_pVout, VOUT_CLOSE );
+ vout_Control( m_pVout, VOUT_REPARENT, 0 );
m_pVout = NULL;
}
}