diff options
author | Max Kellermann <max@duempel.org> | 2014-11-01 13:20:39 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-11-02 11:54:26 +0100 |
commit | 32b5654a6e7738211e6aa18ab8089cc6328aa1fa (patch) | |
tree | 364546dbabd2978df72a24827f1eade72c954a4e /src/DecoderThread.cxx | |
parent | 674091424e715fddd8fbfe8146f351da5bf84974 (diff) | |
download | mpd-32b5654a6e7738211e6aa18ab8089cc6328aa1fa.tar.gz mpd-32b5654a6e7738211e6aa18ab8089cc6328aa1fa.tar.xz mpd-32b5654a6e7738211e6aa18ab8089cc6328aa1fa.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 '')
-rw-r--r-- | src/DecoderThread.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/DecoderThread.cxx b/src/DecoderThread.cxx index cf21534f0..7ee36faca 100644 --- a/src/DecoderThread.cxx +++ b/src/DecoderThread.cxx @@ -212,7 +212,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, |