diff options
Diffstat (limited to 'src/rmd_encode_sound_buffer.c')
-rw-r--r-- | src/rmd_encode_sound_buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rmd_encode_sound_buffer.c b/src/rmd_encode_sound_buffer.c index d35a17c..22e4ddc 100644 --- a/src/rmd_encode_sound_buffer.c +++ b/src/rmd_encode_sound_buffer.c @@ -128,8 +128,9 @@ void *rmdEncodeSoundBuffer(ProgData *pdata) { } pthread_mutex_unlock(&pdata->libogg_mutex); - /* this needs synchronizing */ + pthread_mutex_lock(&pdata->avd_mutex); pdata->avd -= pdata->periodtime; + pthread_mutex_unlock(&pdata->avd_mutex); } pthread_mutex_lock(&pdata->vorbis_lib_mutex); |