diff options
| -rw-r--r-- | src/rmd_cache_audio.c | 2 | ||||
| -rw-r--r-- | src/rmd_capture_sound.c | 3 | ||||
| -rw-r--r-- | src/rmd_encode_sound_buffer.c | 2 | ||||
| -rw-r--r-- | src/rmd_timer.c | 3 | 
4 files changed, 8 insertions, 2 deletions
diff --git a/src/rmd_cache_audio.c b/src/rmd_cache_audio.c index 8becef4..0ac011f 100644 --- a/src/rmd_cache_audio.c +++ b/src/rmd_cache_audio.c @@ -51,7 +51,7 @@ void *rmdCacheSoundBuffer(ProgData *pdata) {  	}  #endif -	rmdThreadsSetName("rmdCacheSounds"); +	rmdThreadsSetName("rmdCacheSound");  //We are simply going to throw sound on the disk.  //It's sound is tiny compared to that of image, so diff --git a/src/rmd_capture_sound.c b/src/rmd_capture_sound.c index 76ccd4b..0c95afa 100644 --- a/src/rmd_capture_sound.c +++ b/src/rmd_capture_sound.c @@ -29,6 +29,7 @@  #include "rmd_jack.h"  #include "rmd_opendev.h" +#include "rmd_threads.h"  #include "rmd_types.h"  #include <pthread.h> @@ -46,6 +47,8 @@ void *rmdCaptureSound(ProgData *pdata) {  #ifdef HAVE_LIBASOUND  	int frames = pdata->periodsize;  #endif +	rmdThreadsSetName("rmdCaptureSound"); +  	//start capturing only after first frame is taken  	nanosleep(&(struct timespec){ .tv_nsec = pdata->frametime * 1000 }, NULL); diff --git a/src/rmd_encode_sound_buffer.c b/src/rmd_encode_sound_buffer.c index b3f8781..d35a17c 100644 --- a/src/rmd_encode_sound_buffer.c +++ b/src/rmd_encode_sound_buffer.c @@ -46,7 +46,7 @@ void *rmdEncodeSoundBuffer(ProgData *pdata) {  		jackbuf = malloc(pdata->sound_framesize * pdata->jdata->buffersize);  #endif -	rmdThreadsSetName("rmdEncodeSounds"); +	rmdThreadsSetName("rmdEncodeSound");  	pdata->v_encoding_clean = 0;  	while (pdata->running) { diff --git a/src/rmd_timer.c b/src/rmd_timer.c index 6c3e483..ff9d068 100644 --- a/src/rmd_timer.c +++ b/src/rmd_timer.c @@ -27,6 +27,7 @@  #include "config.h"  #include "rmd_timer.h" +#include "rmd_threads.h"  #include "rmd_types.h"  #include <pthread.h> @@ -41,6 +42,8 @@  void *rmdTimer(ProgData *pdata){  	struct timespec	delay; +	rmdThreadsSetName("rmdTimer"); +  	delay.tv_sec = 1.f / pdata->args.fps;  	delay.tv_nsec = 1000000000.f / pdata->args.fps - delay.tv_sec * 1000000000.f;  | 
