playlist_list: use uri_get_suffix()

This commit is contained in:
Max Kellermann 2009-12-26 02:20:40 +01:00
parent 115d26608b
commit 032354e65c

View File

@ -160,12 +160,10 @@ playlist_list_open_uri_suffix(const char *uri, const bool *tried)
assert(uri != NULL);
suffix = strrchr(uri, '.');
if (suffix == NULL || strchr(suffix, '/') != NULL)
suffix = uri_get_suffix(uri);
if (suffix == NULL)
return NULL;
++suffix;
for (unsigned i = 0; playlist_plugins[i] != NULL; ++i) {
const struct playlist_plugin *plugin = playlist_plugins[i];