Commit 5573e783 authored by Max Kellermann's avatar Max Kellermann

input/CdioParanoia: skip seek if seeking within the buffer

parent 807a1988
......@@ -276,7 +276,7 @@ CdioParanoiaInputStream::Seek(std::unique_lock<Mutex> &,
/* calculate current LSN */
const int32_t lsn_relofs = new_offset / CDIO_CD_FRAMESIZE_RAW;
{
if (lsn_relofs != buffer_lsn) {
const ScopeUnlock unlock(mutex);
para.Seek(lsn_from + lsn_relofs);
}
......
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