aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-12-26 02:20:40 +0100
committerMax Kellermann <max@duempel.org>2009-12-26 03:01:50 +0100
commit032354e65c39a91c722d65cbbc9eb358ca81862f (patch)
tree075344812eddb1f1de88430d93ab05cab4785b69 /src
parent115d26608bd059653a69b569253a352ad1427a97 (diff)
downloadmpd-032354e65c39a91c722d65cbbc9eb358ca81862f.tar.gz
mpd-032354e65c39a91c722d65cbbc9eb358ca81862f.tar.xz
mpd-032354e65c39a91c722d65cbbc9eb358ca81862f.zip
playlist_list: use uri_get_suffix()
Diffstat (limited to 'src')
-rw-r--r--src/playlist_list.c6
1 files changed, 2 insertions, 4 deletions
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];