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); assert(uri != NULL);
suffix = strrchr(uri, '.'); suffix = uri_get_suffix(uri);
if (suffix == NULL || strchr(suffix, '/') != NULL) if (suffix == NULL)
return NULL; return NULL;
++suffix;
for (unsigned i = 0; playlist_plugins[i] != NULL; ++i) { for (unsigned i = 0; playlist_plugins[i] != NULL; ++i) {
const struct playlist_plugin *plugin = playlist_plugins[i]; const struct playlist_plugin *plugin = playlist_plugins[i];