From 3613407ac5ec1a85b6b76476752c7865d244267a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 8 Jul 2022 16:02:25 +0200 Subject: [PATCH] input/CdioParanoia: use typedef lsn_t --- src/input/plugins/CdioParanoiaInputPlugin.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/input/plugins/CdioParanoiaInputPlugin.cxx b/src/input/plugins/CdioParanoiaInputPlugin.cxx index 10a70850f..5ddcca353 100644 --- a/src/input/plugins/CdioParanoiaInputPlugin.cxx +++ b/src/input/plugins/CdioParanoiaInputPlugin.cxx @@ -53,7 +53,7 @@ class CdioParanoiaInputStream final : public InputStream { const lsn_t lsn_from; char buffer[CDIO_CD_FRAMESIZE_RAW]; - int buffer_lsn; + lsn_t buffer_lsn; public: CdioParanoiaInputStream(const char *_uri, Mutex &_mutex, @@ -274,7 +274,7 @@ CdioParanoiaInputStream::Seek(std::unique_lock &, return; /* calculate current LSN */ - const int32_t lsn_relofs = new_offset / CDIO_CD_FRAMESIZE_RAW; + const lsn_t lsn_relofs = new_offset / CDIO_CD_FRAMESIZE_RAW; if (lsn_relofs != buffer_lsn) { const ScopeUnlock unlock(mutex); @@ -295,7 +295,7 @@ CdioParanoiaInputStream::Read(std::unique_lock &, //current sector was changed ? const int16_t *rbuf; - const int32_t lsn_relofs = offset / CDIO_CD_FRAMESIZE_RAW; + const lsn_t lsn_relofs = offset / CDIO_CD_FRAMESIZE_RAW; if (lsn_relofs != buffer_lsn) { const ScopeUnlock unlock(mutex);