shithub: qk1

Download patch

ref: 64307b360c9b55982e9dca4984f8ca9e1007e915
parent: 170a13ec952d11ae6e2c390b58200739d73508a8
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Thu Jan 25 20:54:38 EST 2024

openal: pthread_t is not necessarily an integer

--- a/snd_openal.c
+++ b/snd_openal.c
@@ -771,7 +771,7 @@
 		return;
 
 	track.decoder = -1;
-	track.reader = -1;
+	track.reader = 0;
 	if(pipe(s) != 0){
 err:
 		close(track.pcm);
@@ -778,7 +778,7 @@
 		close(track.dec);
 		if(track.decoder > 0)
 			waitpid(track.decoder, nil, 0);
-		if(track.reader > 0)
+		if(track.reader != 0)
 			pthread_join(track.reader, nil);
 		return;
 	}