From 5864fd8a15d3bb85c0d2924752b7c5a382862d61 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Thu, 13 Sep 2007 04:27:47 +0000 Subject: [PATCH] Fix problem with line endings on m3u files --- src/io.h | 1 + src/mp3-scanner.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/io.h b/src/io.h index 9b5305db..4e9b4a82 100644 --- a/src/io.h +++ b/src/io.h @@ -12,6 +12,7 @@ #endif #ifndef WIN32 +# include # include # include #else diff --git a/src/mp3-scanner.c b/src/mp3-scanner.c index ee577102..3e34e07c 100644 --- a/src/mp3-scanner.c +++ b/src/mp3-scanner.c @@ -474,7 +474,7 @@ int scan_static_playlist(char *path) { return FALSE; } - if(io_open(hfile,"file://%U",path)) { + if(io_open(hfile,"file://%U?ascii=1",path)) { if(db_add_playlist(&perr,base_path,PL_STATICFILE,NULL,path, 0,&playlistid) != DB_E_SUCCESS) { DPRINTF(E_LOG,L_SCAN,"Error adding m3u %s: %s\n",path,perr);