shithub: pplay

Download patch

ref: 158c8ac2d9d15242bb64e548c3ba7f1fc205e604
parent: b31dfe049794b3fcf6ce2c05a0896ab1927dc3c7
author: qwx <qwx@sciops.net>
date: Thu Nov 24 14:54:51 EST 2022

don't die if pipeline fails

--- a/cmd.c
+++ b/cmd.c
@@ -464,8 +464,8 @@
 			break;
 	}
 	close(fd);
-	if(n < 0){
-		fprint(2, "readintochunks: %r\n");
+	if(n < 0 || m == 0){
+		fprint(2, "readintochunks: nothing read\n");
 		if(m == 0){
 			freechunk(rc);
 			return nil;