From 493cd866f1d8c26b69c603524f2d69ecde68f8ed Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 19 Oct 2014 00:50:52 +0200 Subject: TextInputStream: manually shift the buffer before reading Fixes truncated lines in m3u and cue files (regression by commit 67958f7). --- src/input/TextInputStream.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/input') 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) { -- cgit v1.2.3