From 39105f2119c5cf31081a964b3218d20774fb1bb9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 31 May 2010 10:14:48 +0200 Subject: decoder/wildmidi: moved local variable declarations in tag_dup() --- src/decoder/wildmidi_decoder_plugin.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/decoder') diff --git a/src/decoder/wildmidi_decoder_plugin.c b/src/decoder/wildmidi_decoder_plugin.c index 60696fb1a..54eed48d9 100644 --- a/src/decoder/wildmidi_decoder_plugin.c +++ b/src/decoder/wildmidi_decoder_plugin.c @@ -110,21 +110,17 @@ wildmidi_file_decode(struct decoder *decoder, const char *path_fs) static struct tag * wildmidi_tag_dup(const char *path_fs) { - midi *wm; - const struct _WM_Info *info; - struct tag *tag; - - wm = WildMidi_Open(path_fs); + midi *wm = WildMidi_Open(path_fs); if (wm == NULL) return NULL; - info = WildMidi_GetInfo(wm); + const struct _WM_Info *info = WildMidi_GetInfo(wm); if (info == NULL) { WildMidi_Close(wm); return NULL; } - tag = tag_new(); + struct tag *tag = tag_new(); tag->time = info->approx_total_samples / WILDMIDI_SAMPLE_RATE; WildMidi_Close(wm); -- cgit v1.2.3