Decoder, Playlist: ignore URI query string for plugin detection

Use the new uri_get_suffix() overload that removes the query string.
This commit is contained in:
Max Kellermann
2014-11-01 13:20:39 +01:00
parent eab32f2e5d
commit 7d5442e103
4 changed files with 11 additions and 5 deletions

View File

@@ -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,