summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-20 21:44:07 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-20 21:44:07 +0200
commite28f604d316dc2f9e32cb1656a8101d96e86b289 (patch)
tree4dc1f1c5c6fc815e3b97aa14e07041992a4b1753 /playlist.c
parent677a6e08e3c47de72257ccd03c75a07c4cd63812 (diff)
load pls/m3u files even if they have obscure names like tunein-station.pls?id=1234
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 e4cdaa96..78b1bff3 100644
--- a/playlist.c
+++ b/playlist.c
@@ -1089,10 +1089,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 (!memcmp (eol, "m3u", 4)) {
+ if (!memcmp (eol, "m3u", 3)) {
return pl_insert_m3u (after, fname, pabort, cb, user_data);
}
- else if (!memcmp (eol, "pls", 4)) {
+ else if (!memcmp (eol, "pls", 3)) {
return pl_insert_pls (after, fname, pabort, cb, user_data);
}