shithub: treason

Download patch

ref: 1d6632b87d627143b2a817c07dfda29bf4352f22
parent: 1726aef226fe5b6dcd7b61cd106d1ddf4bb432a0
author: Sigrid Haflínudóttir <[email protected]>
date: Wed Sep 16 04:41:44 EDT 2020

fix crash when there is no audio

--- a/main.c
+++ b/main.c
@@ -86,7 +86,8 @@
 	draw(screen, r, curim, nil, ZP);
 	flushimage(display, 1);
 	unlockdisplay(display);
-	sendp(audiosync, nil);
+	if(audiosync != nil)
+		sendp(audiosync, nil);
 
 	delay = nanosec() - x;
 	lastframe += f->dt;