Commit e5137706 authored by Max Kellermann's avatar Max Kellermann

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.
parent 1e0acb2e
...@@ -338,7 +338,7 @@ static struct tag *ffmpeg_tag(const char *file) ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment