input/CdioParanoia: use IsEof() in Read()

This commit is contained in:
Max Kellermann 2022-07-08 12:42:19 +02:00
parent 1080c917be
commit 1714cf3417

View File

@ -294,7 +294,7 @@ CdioParanoiaInputStream::Read(std::unique_lock<Mutex> &,
while (length > 0) {
/* end of track ? */
if (lsn_from + lsn_relofs > lsn_to)
if (IsEOF())
break;
//current sector was changed ?