aboutsummaryrefslogtreecommitdiffstats
path: root/src/song_update.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-07 15:14:16 +0100
committerMax Kellermann <max@duempel.org>2009-11-07 15:14:16 +0100
commit5d55b45654eacd479a93673f9ec9ad3627952a96 (patch)
tree4602220efc2da432bc1aac9a828f3694064a9af5 /src/song_update.c
parente3da174fca30c493ec311e41ad3dc6795053757d (diff)
downloadmpd-5d55b45654eacd479a93673f9ec9ad3627952a96.tar.gz
mpd-5d55b45654eacd479a93673f9ec9ad3627952a96.tar.xz
mpd-5d55b45654eacd479a93673f9ec9ad3627952a96.zip
decoder_list: pass previous plugin pointer to lookup functions
Remove the static integer hack, that's not thread safe and sucks.
Diffstat (limited to '')
-rw-r--r--src/song_update.c4
1 files changed, 2 insertions, 2 deletions
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))