From 5573e7836471a3b489d2bb699520285004dd0e57 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 8 Jul 2022 13:46:55 +0200 Subject: [PATCH] input/CdioParanoia: skip seek if seeking within the buffer --- src/input/plugins/CdioParanoiaInputPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }