From 023882f0a416671dac2a84b3c821e2475ac0f67d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigrid=20Solveig=20Hafl=C3=ADnud=C3=B3ttir?= Date: Sun, 31 Oct 2021 17:38:18 +0000 Subject: [PATCH] libtags: no tags is still fine if format is known --- sys/src/cmd/audio/libtags/tags.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/src/cmd/audio/libtags/tags.c b/sys/src/cmd/audio/libtags/tags.c index 684fd26c7..44729a652 100644 --- a/sys/src/cmd/audio/libtags/tags.c +++ b/sys/src/cmd/audio/libtags/tags.c @@ -69,9 +69,8 @@ tagsget(Tagctx *ctx) 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); }