summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-04-04 22:27:49 +0200
committerGravatar waker <wakeroid@gmail.com>2011-04-04 22:27:49 +0200
commitaf1b00413d532ea94ee8509fb0e3aded76556726 (patch)
tree32d19cf90ec86747d3b12ec8bb075772ba319a78 /playlist.c
parent11aa8b8a331a9ecf28c01f13cfdaafa1b873fe54 (diff)
added m3u8 support to radio playlist loader; also fixed couple of bugs
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/playlist.c b/playlist.c
index 0e8b46d8..abd88161 100644
--- a/playlist.c
+++ b/playlist.c
@@ -1402,10 +1402,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", 3)) {
+ if (!strcmp (eol, "m3u") || !strcmp (eol, "m3u8")) {
return pl_insert_m3u (after, fname, pabort, cb, user_data);
}
- else if (!memcmp (eol, "pls", 3)) {
+ else if (!strcmp (eol, "pls")) {
return pl_insert_pls (after, fname, pabort, cb, user_data);
}
@@ -1519,7 +1519,7 @@ static int follow_symlinks = 0;
playItem_t *
pl_insert_dir_int (DB_vfs_t *vfs, playItem_t *after, const char *dirname, int *pabort, int (*cb)(playItem_t *it, void *data), void *user_data) {
- if (!memcmp (dirname, "file://", 7)) {
+ if (!strncmp (dirname, "file://", 7)) {
dirname += 7;
}
if (!follow_symlinks && !vfs) {