summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-04-25 18:33:19 +0200
committerGravatar waker <wakeroid@gmail.com>2011-04-25 18:33:19 +0200
commit86123a153a08526ee74a44a7a42ade46b9073ce9 (patch)
tree5cac87de99628d88e86bbad5e2907d2a2ef20ed9 /playlist.c
parentcd081a0e7ae30c689fec11c71d081f42cd9fc160 (diff)
fixed opening pls and m3u playlists from drag-n-dropped urls
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);
}