aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-02 17:32:40 +0100
committerMax Kellermann <max@duempel.org>2008-11-02 17:32:40 +0100
commite5137706d18ba4d42a57bf90b4d1b9d97af1ecf8 (patch)
treea6742cb3d8cd3b3d67309ef0dcc32e8e80dcdd69 /src
parent1e0acb2e1a3d37a4cb971c964e997641b7d2c615 (diff)
downloadmpd-e5137706d18ba4d42a57bf90b4d1b9d97af1ecf8.tar.gz
mpd-e5137706d18ba4d42a57bf90b4d1b9d97af1ecf8.tar.xz
mpd-e5137706d18ba4d42a57bf90b4d1b9d97af1ecf8.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/decoder/ffmpeg_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/ffmpeg_plugin.c b/src/decoder/ffmpeg_plugin.c
index 445d46512..b9debd1b8 100644
--- a/src/decoder/ffmpeg_plugin.c
+++ b/src/decoder/ffmpeg_plugin.c
@@ -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;
}