Commit 2f4d5964 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

input: treat negative deadline as no deadline in ControlPop()

parent 43464204
...@@ -1482,12 +1482,17 @@ static inline int ControlPop( input_thread_t *p_input, ...@@ -1482,12 +1482,17 @@ static inline int ControlPop( input_thread_t *p_input,
return VLC_EGENERIC; return VLC_EGENERIC;
} }
if( vlc_cond_timedwait( &p_sys->wait_control, &p_sys->lock_control, if( i_deadline >= 0 )
i_deadline ) )
{ {
vlc_mutex_unlock( &p_sys->lock_control ); if( vlc_cond_timedwait( &p_sys->wait_control, &p_sys->lock_control,
return VLC_EGENERIC; i_deadline ) )
{
vlc_mutex_unlock( &p_sys->lock_control );
return VLC_EGENERIC;
}
} }
else
vlc_cond_wait( &p_sys->wait_control, &p_sys->lock_control );
} }
/* */ /* */
......
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