Commit 3613407a authored by Max Kellermann's avatar Max Kellermann

input/CdioParanoia: use typedef lsn_t

parent c32dceb4
...@@ -53,7 +53,7 @@ class CdioParanoiaInputStream final : public InputStream { ...@@ -53,7 +53,7 @@ class CdioParanoiaInputStream final : public InputStream {
const lsn_t lsn_from; const lsn_t lsn_from;
char buffer[CDIO_CD_FRAMESIZE_RAW]; char buffer[CDIO_CD_FRAMESIZE_RAW];
int buffer_lsn; lsn_t buffer_lsn;
public: public:
CdioParanoiaInputStream(const char *_uri, Mutex &_mutex, CdioParanoiaInputStream(const char *_uri, Mutex &_mutex,
...@@ -274,7 +274,7 @@ CdioParanoiaInputStream::Seek(std::unique_lock<Mutex> &, ...@@ -274,7 +274,7 @@ CdioParanoiaInputStream::Seek(std::unique_lock<Mutex> &,
return; return;
/* calculate current LSN */ /* 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) { if (lsn_relofs != buffer_lsn) {
const ScopeUnlock unlock(mutex); const ScopeUnlock unlock(mutex);
...@@ -295,7 +295,7 @@ CdioParanoiaInputStream::Read(std::unique_lock<Mutex> &, ...@@ -295,7 +295,7 @@ CdioParanoiaInputStream::Read(std::unique_lock<Mutex> &,
//current sector was changed ? //current sector was changed ?
const int16_t *rbuf; 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) { if (lsn_relofs != buffer_lsn) {
const ScopeUnlock unlock(mutex); const ScopeUnlock unlock(mutex);
......
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