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,6 +1482,8 @@ static inline int ControlPop( input_thread_t *p_input,
return VLC_EGENERIC;
}
if( i_deadline >= 0 )
{
if( vlc_cond_timedwait( &p_sys->wait_control, &p_sys->lock_control,
i_deadline ) )
{
......@@ -1489,6 +1491,9 @@ static inline int ControlPop( input_thread_t *p_input,
return VLC_EGENERIC;
}
}
else
vlc_cond_wait( &p_sys->wait_control, &p_sys->lock_control );
}
/* */
const int i_index = ControlGetReducedIndexLocked( p_input );
......
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