aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-05-31 00:06:37 +0200
committerMax Kellermann <max@duempel.org>2010-05-31 00:06:37 +0200
commitca08c4dbf42bdf459be51f4a3955a39aa813a8d6 (patch)
tree27f3f0d02226312d57fa46202a0b79182c176602 /src/decoder
parent8af52fa205f486c8fb00910d11afbc0b82fbeaa8 (diff)
downloadmpd-ca08c4dbf42bdf459be51f4a3955a39aa813a8d6.tar.gz
mpd-ca08c4dbf42bdf459be51f4a3955a39aa813a8d6.tar.xz
mpd-ca08c4dbf42bdf459be51f4a3955a39aa813a8d6.zip
decoder/vorbis: rename local variable "ret"
Diffstat (limited to 'src/decoder')
-rw-r--r--src/decoder/vorbis_decoder_plugin.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/decoder/vorbis_decoder_plugin.c b/src/decoder/vorbis_decoder_plugin.c
index 6cbce85be..9e63831ef 100644
--- a/src/decoder/vorbis_decoder_plugin.c
+++ b/src/decoder/vorbis_decoder_plugin.c
@@ -373,22 +373,21 @@ vorbis_stream_decode(struct decoder *decoder,
static struct tag *
vorbis_stream_tag(struct input_stream *is)
{
- struct tag *ret;
struct vorbis_input_stream vis;
OggVorbis_File vf;
if (!vorbis_is_open(&vis, &vf, NULL, is))
return NULL;
- ret = vorbis_comments_to_tag(ov_comment(&vf, -1)->user_comments);
+ struct tag *tag = vorbis_comments_to_tag(ov_comment(&vf, -1)->user_comments);
- if (!ret)
- ret = tag_new();
- ret->time = (int)(ov_time_total(&vf, -1) + 0.5);
+ if (tag == NULL)
+ tag = tag_new();
+ tag->time = (int)(ov_time_total(&vf, -1) + 0.5);
ov_clear(&vf);
- return ret;
+ return tag;
}
static const char *const vorbis_suffixes[] = {