summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/playlist.c b/playlist.c
index 4535c296..971b1ede 100644
--- a/playlist.c
+++ b/playlist.c
@@ -1401,10 +1401,10 @@ pl_insert_file (playItem_t *after, const char *fname, int *pabort, int (*cb)(pla
// they must be handled before checking for http://,
// so that remote playlist files referenced from other playlist files could
// be loaded correctly
- if (!strcmp (eol, "m3u") || !strcmp (eol, "m3u8")) {
+ if (!strncmp (eol, "m3u", 3) || !strncmp (eol, "m3u8", 4)) {
return pl_insert_m3u (after, fname, pabort, cb, user_data);
}
- else if (!strcmp (eol, "pls")) {
+ else if (!strncmp (eol, "pls", 3)) {
return pl_insert_pls (after, fname, pabort, cb, user_data);
}