From 032354e65c39a91c722d65cbbc9eb358ca81862f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 26 Dec 2009 02:20:40 +0100 Subject: playlist_list: use uri_get_suffix() --- src/playlist_list.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/playlist_list.c b/src/playlist_list.c index a17762911..540810654 100644 --- a/src/playlist_list.c +++ b/src/playlist_list.c @@ -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]; -- cgit v1.2.3