decoder/vorbis: rename local variable "ret"

This commit is contained in:
Max Kellermann 2010-05-31 00:06:37 +02:00
parent 8af52fa205
commit ca08c4dbf4
1 changed files with 5 additions and 6 deletions

View File

@ -373,22 +373,21 @@ vorbis_stream_decode(struct decoder *decoder,
static struct tag * static struct tag *
vorbis_stream_tag(struct input_stream *is) vorbis_stream_tag(struct input_stream *is)
{ {
struct tag *ret;
struct vorbis_input_stream vis; struct vorbis_input_stream vis;
OggVorbis_File vf; OggVorbis_File vf;
if (!vorbis_is_open(&vis, &vf, NULL, is)) if (!vorbis_is_open(&vis, &vf, NULL, is))
return NULL; 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) if (tag == NULL)
ret = tag_new(); tag = tag_new();
ret->time = (int)(ov_time_total(&vf, -1) + 0.5); tag->time = (int)(ov_time_total(&vf, -1) + 0.5);
ov_clear(&vf); ov_clear(&vf);
return ret; return tag;
} }
static const char *const vorbis_suffixes[] = { static const char *const vorbis_suffixes[] = {