Commit b195d6ef authored by Tristan Matthews's avatar Tristan Matthews Committed by Jean-Baptiste Kempf

jack: lock ringbuffer in memory

The ringbuffer will be locked and later unlocked (during jack_ringbuffer_free),
on systems which implement mlock().
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 3fd6a569
......@@ -175,6 +175,11 @@ static int Start( audio_output_t *p_aout, audio_sample_format_t *restrict fmt )
goto error_out;
}
if( jack_ringbuffer_mlock( p_sys->p_jack_ringbuffer ))
{
msg_Warn( p_aout, "failed to lock JACK ringbuffer in memory" );
}
/* Create the output ports */
for( i = 0; i < p_sys->i_channels; i++ )
{
......
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