ffmpeg: fix boolean inversion in ffmpeg_tag()
ffmpeg_tag() deleted the tag when ffmpeg_helper() returned success. The return value was interpreted incorrectly, it should return the tag on success.
This commit is contained in:
parent
1e0acb2e1a
commit
e5137706d1
|
@ -338,7 +338,7 @@ static struct tag *ffmpeg_tag(const char *file)
|
||||||
base.tag = tag_new();
|
base.tag = tag_new();
|
||||||
|
|
||||||
ret = ffmpeg_helper(&input, ffmpeg_tag_internal, &base);
|
ret = ffmpeg_helper(&input, ffmpeg_tag_internal, &base);
|
||||||
if (ret) {
|
if (!ret) {
|
||||||
tag_free(base.tag);
|
tag_free(base.tag);
|
||||||
base.tag = NULL;
|
base.tag = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue