shithub: zuke

Download patch

ref: 149d383fd0d26eae1c2de4743eceebee94f75d1b
parent: 423f348fa9b5b312129efdd2e4a873b70251cf37
author: Sigrid Haflínudóttir <[email protected]>
date: Thu Jan 30 05:57:21 EST 2020

seek: reset bytesfrom after seek is complete

--- a/zuke.c
+++ b/zuke.c
@@ -477,6 +477,8 @@
 
 		c = 0;
 		if(bytesfrom <= byteswritten){
+			if(bytesfrom == byteswritten)
+				bytesfrom = 0;
 			if(iowrite(io, audio, buf, n) != n){
 				fprint(2, "failed to write %d bytes: %r\n", n);
 				break;