git: 9front

Download patch

ref: bc6838ca51405a50ec9f59abce584e974c5bb5f4
parent: 83daaf4ee43ec79d87dab45c3d14e55b2adb8425
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sun Oct 31 13:38:18 EDT 2021

libtags: no tags is still fine if format is known

--- a/sys/src/cmd/audio/libtags/tags.c
+++ b/sys/src/cmd/audio/libtags/tags.c
@@ -69,9 +69,8 @@
 	for(i = 0; i < nelem(g); i++){
 		ctx->num = 0;
 		if(g[i].f(ctx) == 0){
-			if(ctx->num > 0)
-				res = 0;
 			ctx->format = g[i].format;
+			res = 0;
 		}
 		ctx->seek(ctx, 0, 0);
 	}
--