Commit 1714cf34 authored by Max Kellermann's avatar Max Kellermann

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

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