diff options
author | Max Kellermann <max@duempel.org> | 2014-10-19 00:50:52 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-10-19 00:50:52 +0200 |
commit | 493cd866f1d8c26b69c603524f2d69ecde68f8ed (patch) | |
tree | b9efc5d6a041389759d36640f3445d46c2de5af6 /src/input/TextInputStream.cxx | |
parent | 063d3696728d110fc07609a934f9aa62e12d9e82 (diff) | |
download | mpd-493cd866f1d8c26b69c603524f2d69ecde68f8ed.tar.gz mpd-493cd866f1d8c26b69c603524f2d69ecde68f8ed.tar.xz mpd-493cd866f1d8c26b69c603524f2d69ecde68f8ed.zip |
TextInputStream: manually shift the buffer before reading
Fixes truncated lines in m3u and cue files (regression by commit
67958f7).
Diffstat (limited to 'src/input/TextInputStream.cxx')
-rw-r--r-- | src/input/TextInputStream.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input/TextInputStream.cxx b/src/input/TextInputStream.cxx index c23616782..b79f64bdc 100644 --- a/src/input/TextInputStream.cxx +++ b/src/input/TextInputStream.cxx @@ -33,6 +33,8 @@ TextInputStream::ReadLine() if (line != nullptr) return line; + buffer.Shift(); + while (true) { auto dest = buffer.Write(); if (dest.size < 2) { |