input/CdioParanoia: skip seek if seeking within the buffer

This commit is contained in:
Max Kellermann 2022-07-08 13:46:55 +02:00
parent 807a19889f
commit 5573e78364
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}