summaryrefslogtreecommitdiff
path: root/src/core/CdStreamPosix.cpp
diff options
context:
space:
mode:
authorFilip Gawin <filip.gawin@zoho.com>2020-11-03 18:00:10 +0100
committershfil <filip.gawin@zoho.com>2020-11-06 18:42:28 +0100
commitf442793d201bd905c38c4861c564ba2896b8cd88 (patch)
tree71159d2380a384ad214ad59f5221bf6d7427758e /src/core/CdStreamPosix.cpp
parent8614f6862050d5e13c7a351cb4fafb4b983a8390 (diff)
Allow to handle larger files via 64bit variables
Diffstat (limited to 'src/core/CdStreamPosix.cpp')
-rw-r--r--src/core/CdStreamPosix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/CdStreamPosix.cpp b/src/core/CdStreamPosix.cpp
index 5c8d1b16..35a90a74 100644
--- a/src/core/CdStreamPosix.cpp
+++ b/src/core/CdStreamPosix.cpp
@@ -429,7 +429,7 @@ void *CdStreamThread(void *param)
ASSERT(pChannel->hFile >= 0);
ASSERT(pChannel->pBuffer != nil );
- lseek(pChannel->hFile, pChannel->nSectorOffset * CDSTREAM_SECTOR_SIZE, SEEK_SET);
+ lseek(pChannel->hFile, (size_t)pChannel->nSectorOffset * (size_t)CDSTREAM_SECTOR_SIZE, SEEK_SET);
if (read(pChannel->hFile, pChannel->pBuffer, pChannel->nSectorsToRead * CDSTREAM_SECTOR_SIZE) == -1) {
// pChannel->nSectorsToRead == 0 at this point means we wanted to flush channel
// STREAM_WAITING is a little hack to make CStreaming not process this data