diff options
author | Max Kellermann <max@duempel.org> | 2014-11-01 13:20:39 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-11-01 13:41:18 +0100 |
commit | 7d5442e1039869d659533eafcf15d8157bf4c465 (patch) | |
tree | 06bebf912f001870020095cb85c81d45ec36df00 /src/decoder/DecoderThread.cxx | |
parent | eab32f2e5d8114d08e392001f0004284267bebd5 (diff) | |
download | mpd-7d5442e1039869d659533eafcf15d8157bf4c465.tar.gz mpd-7d5442e1039869d659533eafcf15d8157bf4c465.tar.xz mpd-7d5442e1039869d659533eafcf15d8157bf4c465.zip |
Decoder, Playlist: ignore URI query string for plugin detection
Use the new uri_get_suffix() overload that removes the query string.
Diffstat (limited to 'src/decoder/DecoderThread.cxx')
-rw-r--r-- | src/decoder/DecoderThread.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/decoder/DecoderThread.cxx b/src/decoder/DecoderThread.cxx index a39cfa6e9..dd5518b98 100644 --- a/src/decoder/DecoderThread.cxx +++ b/src/decoder/DecoderThread.cxx @@ -237,7 +237,8 @@ static bool decoder_run_stream_locked(Decoder &decoder, InputStream &is, const char *uri, bool &tried_r) { - const char *const suffix = uri_get_suffix(uri); + UriSuffixBuffer suffix_buffer; + const char *const suffix = uri_get_suffix(uri, suffix_buffer); using namespace std::placeholders; const auto f = std::bind(decoder_run_stream_plugin, |