Use uthash for media tags handling.

This commit is contained in:
2022-10-04 20:32:26 +01:00
parent 303b870410
commit 0837a549b7
5 changed files with 55 additions and 83 deletions

View File

@@ -31,6 +31,8 @@ int info(char* path)
char* strBuffer;
UErrorCode u_error_code;
uint i, j;
mediaTagEntry* mediaTag;
mediaTagEntry* tmpMediaTag;
ctx = aaruf_open(path);
@@ -532,6 +534,15 @@ int info(char* path)
if(ctx->checksums.hasSpamSum) printf("SpamSum: %s\n", ctx->checksums.spamsum);
if(ctx->mediaTags != NULL)
{
printf("Media tags:\n");
HASH_ITER(hh, ctx->mediaTags, mediaTag, tmpMediaTag)
{
printf("\tType %d is %d bytes long.\n", mediaTag->type, mediaTag->length);
}
}
aaruf_close(ctx);
return 0;