[vlc-devel] commit: jack: missing lock (Jakob Leben )
git version control
git at videolan.org
Thu Nov 26 01:58:37 CET 2009
vlc | branch: 1.0-bugfix | Jakob Leben <jleben at videolan.org> | Wed Nov 25 08:41:13 2009 +0100| [8196669897517184bcc53f3fba9b116bb25a634b] | committer: Jakob Leben
jack: missing lock
(cherry picked from commit f4fff7791b52e689455147d42fb7bfbbdd8b48de)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8196669897517184bcc53f3fba9b116bb25a634b
---
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 aeb203f..aa77b6c 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