Fix problem where the http client would ignore the last line in a m3u because of missing CRLF (issue #169)

This commit is contained in:
ejurgensen 2015-06-18 23:03:11 +02:00
parent f73d944456
commit ec0ba2c5fa

View File

@ -307,6 +307,9 @@ http_stream_setup(char **stream, const char *url)
return -1;
}
// Pad with CRLF because evbuffer_readln() might not read the last line otherwise
evbuffer_add(ctx.body, "\r\n", 2);
/* Read the playlist until the first stream link is found, but give up if
* nothing is found in the first 10 lines
*/