libtags: no tags is still fine if format is known

This commit is contained in:
Sigrid Solveig Haflínudóttir 2021-10-31 17:38:18 +00:00
parent 1051b023a8
commit 023882f0a4

View file

@ -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);
}