aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/ffmpeg_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-30 19:01:31 +0100
committerMax Kellermann <max@duempel.org>2008-10-30 19:01:31 +0100
commit25f4efcdb8b11c2414458c61be3dc1ed73903824 (patch)
tree1b5f6741194c0eb3a45dcbd7e43ec542f3c524fb /src/decoder/ffmpeg_plugin.c
parent7cbd9821c6cc1b6ca973012f9c136ec5c98fb2bd (diff)
downloadmpd-25f4efcdb8b11c2414458c61be3dc1ed73903824.tar.gz
mpd-25f4efcdb8b11c2414458c61be3dc1ed73903824.tar.xz
mpd-25f4efcdb8b11c2414458c61be3dc1ed73903824.zip
ffmpeg: eliminated local variable "tag"
The function ffmpeg_tag() already has the variable base.tag, which can be used for this.
Diffstat (limited to '')
-rw-r--r--src/decoder/ffmpeg_plugin.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/decoder/ffmpeg_plugin.c b/src/decoder/ffmpeg_plugin.c
index c04a8b8a5..d13297ad1 100644
--- a/src/decoder/ffmpeg_plugin.c
+++ b/src/decoder/ffmpeg_plugin.c
@@ -321,27 +321,24 @@ static struct tag *ffmpeg_tag(char *file)
struct input_stream input;
BasePtrs base;
bool ret;
- struct tag *tag = NULL;
if (!input_stream_open(&input, file)) {
ERROR("failed to open %s\n", file);
return NULL;
}
- tag = tag_new();
-
base.decoder = NULL;
- base.tag = tag;
+ base.tag = tag_new();
ret = ffmpeg_helper(&input, ffmpeg_tag_internal, &base);
if (ret) {
- free(tag);
- tag = NULL;
+ free(base.tag);
+ base.tag = NULL;
}
input_stream_close(&input);
- return tag;
+ return base.tag;
}
/**