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:
Max Kellermann 2008-11-02 17:32:40 +01:00
parent 1e0acb2e1a
commit e5137706d1
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ static struct tag *ffmpeg_tag(const char *file)
base.tag = tag_new();
ret = ffmpeg_helper(&input, ffmpeg_tag_internal, &base);
if (ret) {
if (!ret) {
tag_free(base.tag);
base.tag = NULL;
}