Commit 493cd866 authored by Max Kellermann's avatar Max Kellermann

TextInputStream: manually shift the buffer before reading

Fixes truncated lines in m3u and cue files (regression by commit 67958f7f).
parent 063d3696
......@@ -3,6 +3,7 @@ ver 0.19.1 (not yet released)
- mms: fix deadlock bug
* playlist
- extm3u: fix Extended M3U detection
- m3u, extm3u, cue: fix truncated lines
* fix build failure on Mac OS X
* add missing file systemd/mpd.socket to tarball
......
......@@ -33,6 +33,8 @@ TextInputStream::ReadLine()
if (line != nullptr)
return line;
buffer.Shift();
while (true) {
auto dest = buffer.Write();
if (dest.size < 2) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment