diff --git a/src/input/plugins/CdioParanoiaInputPlugin.cxx b/src/input/plugins/CdioParanoiaInputPlugin.cxx index 8784273b4..ed6aaed91 100644 --- a/src/input/plugins/CdioParanoiaInputPlugin.cxx +++ b/src/input/plugins/CdioParanoiaInputPlugin.cxx @@ -276,7 +276,7 @@ CdioParanoiaInputStream::Seek(std::unique_lock &, /* 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); }