From: François Revol Date: Mon, 23 Mar 2020 18:17:40 +0000 (+0100) Subject: Don't skip printing EXTINF for unknown durations X-Git-Tag: v0.43~2 X-Git-Url: http://royale.zerezo.com/git/?p=FAPG;a=commitdiff_plain;h=c921eac7a8659c4994abb0f7b6cb07a0ae168139 Don't skip printing EXTINF for unknown durations It is perfectly valid to use -1 when duration isn't known. --- diff --git a/fapg.c b/fapg.c index 0c72af8..745e6ae 100644 --- a/fapg.c +++ b/fapg.c @@ -1335,12 +1335,10 @@ void parse_file(unsigned char *newpath, unsigned char * original_path) counter++; switch (format) { case FORMAT_M3U: - if(duration != -1) { - printf("#EXTINF:%d,", duration); - if(strlen(artist) != 0) - printf("%s - ", artist); - printf("%s%s", title, eol); - } + printf("#EXTINF:%d,", duration); + if(strlen(artist) != 0) + printf("%s - ", artist); + printf("%s%s", title, eol); print_path(newpath); printf("%s", eol); break;