Set length on output from read media tag.

This commit is contained in:
2019-03-21 00:18:48 +00:00
parent 4ab2e1bb49
commit 4b20f2057e
4 changed files with 12 additions and 5 deletions

View File

@@ -383,8 +383,9 @@ void *open(const char *filepath)
// TODO: MediaTagType
// MediaTagType mediaTagType = GetMediaTagTypeForDataType(blockHeader.type);
mediaTag->type = blockHeader.type;
mediaTag->data = data;
mediaTag->type = blockHeader.type;
mediaTag->data = data;
mediaTag->length = blockHeader.length;
if(ctx->mediaTagsHead == NULL)
{