summaryrefslogtreecommitdiff
path: root/recordmydesktop/src/rmd_cache_audio.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-07-11 12:11:14 -0700
committerVito Caputo <vcaputo@pengaru.com>2020-07-11 13:36:42 -0700
commitf0f64460fab4d8d96e49dfe3e056b57d22cfe5ca (patch)
treeb0bee34e6f5c2a03073da5991f2d4d850400c436 /recordmydesktop/src/rmd_cache_audio.c
parent3e5963c755fea09b2a28aa1398f4a92c835a2c69 (diff)
*: more unfucking synchronization
Diffstat (limited to 'recordmydesktop/src/rmd_cache_audio.c')
-rw-r--r--recordmydesktop/src/rmd_cache_audio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/recordmydesktop/src/rmd_cache_audio.c b/recordmydesktop/src/rmd_cache_audio.c
index 5686d81..5a71050 100644
--- a/recordmydesktop/src/rmd_cache_audio.c
+++ b/recordmydesktop/src/rmd_cache_audio.c
@@ -87,11 +87,12 @@ void *rmdCacheSoundBuffer(ProgData *pdata) {
(*jack_ringbuffer_read)(pdata->jdata->sound_buffer, jackbuf, write_size);
fwrite(jackbuf, 1, write_size, pdata->cache_data->afp);
} else {
- pdata->v_enc_thread_waiting=1;
+ /* FIXME TODO this needs redoing... */
+ //pdata->v_enc_thread_waiting=1;
pthread_mutex_lock(&pdata->snd_buff_ready_mutex);
pthread_cond_wait(&pdata->sound_data_read, &pdata->snd_buff_ready_mutex);
pthread_mutex_unlock(&pdata->snd_buff_ready_mutex);
- pdata->v_enc_thread_waiting=0;
+ //pdata->v_enc_thread_waiting=0;
continue;
}
© All Rights Reserved