diff options
author | Max Kellermann <max@duempel.org> | 2008-10-30 18:08:52 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-30 18:08:52 +0100 |
commit | b180d0b47f5512e492eb490848feaa29e9fbc3d3 (patch) | |
tree | bd9ec2cc52e076479e906dcb0d93b99065bfdd16 /src | |
parent | 4d72bda4c3a6dc9ae774c6bf664e42090360dc7e (diff) | |
download | mpd-b180d0b47f5512e492eb490848feaa29e9fbc3d3.tar.gz mpd-b180d0b47f5512e492eb490848feaa29e9fbc3d3.tar.xz mpd-b180d0b47f5512e492eb490848feaa29e9fbc3d3.zip |
ffmpeg: initialize base.decoder
ffmpeg_tag() did not initialize base.decoder, which made valgrind
unhappy, and can lead to a egmentation fault.
Diffstat (limited to '')
-rw-r--r-- | src/decoder/ffmpeg_plugin.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/decoder/ffmpeg_plugin.c b/src/decoder/ffmpeg_plugin.c index 26af540b0..2dffca36b 100644 --- a/src/decoder/ffmpeg_plugin.c +++ b/src/decoder/ffmpeg_plugin.c @@ -363,6 +363,7 @@ static struct tag *ffmpeg_tag(char *file) tag = tag_new(); + base.decoder = NULL; base.tag = tag; ret = ffmpeg_helper(&input, ffmpeg_tag_internal, &base); |