have = c->mapsize - c->fpos;
rv = PARA_MIN(have, want);
PARA_DEBUG_LOG("reading %u bytes @%zu\n", rv, c->fpos);
have = c->mapsize - c->fpos;
rv = PARA_MIN(have, want);
PARA_DEBUG_LOG("reading %u bytes @%zu\n", rv, c->fpos);
- if (mp4ff_meta_get_by_index(mp4ff, i,
- &tag->item, &tag->value) < 0)
+ if (!mp4ff_meta_get_by_index(mp4ff, i, &tag->item, &tag->value))
goto free_tags;
PARA_INFO_LOG("found: %s: %s\n", tag->item, tag->value);
if (!strcmp(tag->item, "artist"))
goto free_tags;
PARA_INFO_LOG("found: %s: %s\n", tag->item, tag->value);
if (!strcmp(tag->item, "artist"))
if (!found_comment)
add_tag(&metadata, "comment", tags->comment);
ret = -E_MP4FF_META_WRITE;
if (!found_comment)
add_tag(&metadata, "comment", tags->comment);
ret = -E_MP4FF_META_WRITE;