diff options
author | Max Kellermann <max@duempel.org> | 2009-12-26 02:20:40 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-12-26 03:01:50 +0100 |
commit | 032354e65c39a91c722d65cbbc9eb358ca81862f (patch) | |
tree | 075344812eddb1f1de88430d93ab05cab4785b69 /src/playlist_list.c | |
parent | 115d26608bd059653a69b569253a352ad1427a97 (diff) |
playlist_list: use uri_get_suffix()
Diffstat (limited to 'src/playlist_list.c')
-rw-r--r-- | src/playlist_list.c | 6 |
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]; |