diff options
author | Max Kellermann <max@duempel.org> | 2009-11-07 15:14:16 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-11-07 15:14:16 +0100 |
commit | 5d55b45654eacd479a93673f9ec9ad3627952a96 (patch) | |
tree | 4602220efc2da432bc1aac9a828f3694064a9af5 /src/song_update.c | |
parent | e3da174fca30c493ec311e41ad3dc6795053757d (diff) | |
download | mpd-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.c | 4 |
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)) |