From 5d55b45654eacd479a93673f9ec9ad3627952a96 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 7 Nov 2009 15:14:16 +0100 Subject: decoder_list: pass previous plugin pointer to lookup functions Remove the static integer hack, that's not thread safe and sucks. --- src/song_update.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/song_update.c') diff --git a/src/song_update.c b/src/song_update.c index cfef5861f..2239f9aa6 100644 --- a/src/song_update.c +++ b/src/song_update.c @@ -107,7 +107,7 @@ song_file_update(struct song *song) if (suffix == NULL) return false; - plugin = decoder_plugin_from_suffix(suffix, false); + plugin = decoder_plugin_from_suffix(suffix, NULL); if (plugin == NULL) return false; @@ -132,7 +132,7 @@ song_file_update(struct song *song) if (song->tag != NULL) break; - plugin = decoder_plugin_from_suffix(suffix, true); + plugin = decoder_plugin_from_suffix(suffix, plugin); } while (plugin != NULL); if (song->tag != NULL && tag_is_empty(song->tag)) -- cgit v1.2.3