Commit 0439df65 authored by Gildas Bazin's avatar Gildas Bazin

* src/input/input.c: use a low priority input thread when in...

* src/input/input.c: use a low priority input thread when in b_out_pace_control && b_can_pace_control mode (avoids using all the cpu time).
parent dcb17ac0
......@@ -906,6 +906,14 @@ static int Init( input_thread_t * p_input, vlc_bool_t b_quick )
{
p_input->b_out_pace_control = VLC_TRUE;
}
if( p_input->b_can_pace_control && p_input->b_out_pace_control )
{
/* We don't want a high input priority here or we'll
* end-up sucking up all the CPU time */
vlc_thread_set_priority( p_input, VLC_THREAD_PRIORITY_LOW );
}
msg_Dbg( p_input, "starting in %s mode",
p_input->b_out_pace_control ? "asynch" : "synch" );
}
......
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