From 1714cf3417cefc24edd95cab15f00cf994552ce8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 8 Jul 2022 12:42:19 +0200 Subject: [PATCH] input/CdioParanoia: use IsEof() in Read() --- src/input/plugins/CdioParanoiaInputPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/plugins/CdioParanoiaInputPlugin.cxx b/src/input/plugins/CdioParanoiaInputPlugin.cxx index 6cdccf8c6..b520c6024 100644 --- a/src/input/plugins/CdioParanoiaInputPlugin.cxx +++ b/src/input/plugins/CdioParanoiaInputPlugin.cxx @@ -294,7 +294,7 @@ CdioParanoiaInputStream::Read(std::unique_lock &, while (length > 0) { /* end of track ? */ - if (lsn_from + lsn_relofs > lsn_to) + if (IsEOF()) break; //current sector was changed ?