[vlc-commits] jack: lock ringbuffer in memory
Tristan Matthews
git at videolan.org
Fri May 3 14:50:23 CEST 2013
vlc | branch: master | Tristan Matthews <le.businessman at gmail.com> | Fri May 3 01:02:13 2013 -0400| [b195d6efae4212751e48f50e47785dce9cb7fd2c] | committer: 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 <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b195d6efae4212751e48f50e47785dce9cb7fd2c
---
modules/audio_output/jack.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/audio_output/jack.c b/modules/audio_output/jack.c
index 9d8b50f..9fbebb9 100644
--- a/modules/audio_output/jack.c
+++ b/modules/audio_output/jack.c
@@ -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++ )
{
More information about the vlc-commits
mailing list