Commit 5f8906e3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

No point in checking vlc_object_alive there

parent 20caf788
......@@ -317,17 +317,13 @@ RunIntf( intf_thread_t *p_intf )
static int InitThread( intf_thread_t * p_intf )
{
/* We might need some locking here */
if( vlc_object_alive (p_intf) )
{
input_thread_t * p_input;
p_input = vlc_object_find( p_intf, VLC_OBJECT_INPUT, FIND_PARENT );
/* Maybe the input just died */
if( p_input == NULL )
{
return VLC_EGENERIC;
}
vlc_mutex_lock( &p_intf->change_lock );
......@@ -339,13 +335,6 @@ static int InitThread( intf_thread_t * p_intf )
p_intf->p_sys->b_key_pressed = false;
vlc_mutex_unlock( &p_intf->change_lock );
return VLC_SUCCESS;
}
else
{
return VLC_EGENERIC;
}
}
/*****************************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment