[vlc-devel] commit: jack: missing lock (Jakob Leben )
git version control
git at videolan.org
Wed Nov 25 09:13:15 CET 2009
vlc | branch: master | Jakob Leben <jleben at videolan.org> | Wed Nov 25 08:41:13 2009 +0100| [f4fff7791b52e689455147d42fb7bfbbdd8b48de] | committer: Jakob Leben
jack: missing lock
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f4fff7791b52e689455147d42fb7bfbbdd8b48de
---
modules/audio_output/jack.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/audio_output/jack.c b/modules/audio_output/jack.c
index a88128d..4821fae 100644
--- a/modules/audio_output/jack.c
+++ b/modules/audio_output/jack.c
@@ -248,7 +248,10 @@ int Process( jack_nframes_t i_frames, void *p_arg )
jack_sample_t *p_src = NULL;
/* Get the next audio data buffer */
+ vlc_mutex_lock( &p_aout->output_fifo_lock );
aout_buffer_t *p_buffer = aout_FifoPop( p_aout, &p_aout->output.fifo );
+ vlc_mutex_unlock( &p_aout->output_fifo_lock );
+
if( p_buffer != NULL )
{
p_src = (jack_sample_t *)p_buffer->p_buffer;
More information about the vlc-devel
mailing list