mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 22:01:27 +00:00
Fix assumption that size_t == int. Fixes #123137
Original commit message from CVS: Fix assumption that size_t == int. Fixes #123137
This commit is contained in:
parent
f0187b294c
commit
e94d234ce5
2 changed files with 6 additions and 6 deletions
|
@ -388,7 +388,7 @@ gst_filesrc_map_region (GstFileSrc *src, off_t offset, size_t size)
|
|||
|
||||
g_return_val_if_fail (offset >= 0, NULL);
|
||||
|
||||
fs_print ("mapping region %08llx+%08x from file into memory\n",offset,size);
|
||||
fs_print ("mapping region %08llx+%08lx from file into memory\n",offset,(unsigned long)size);
|
||||
mmapregion = mmap (NULL, size, PROT_READ, MAP_SHARED, src->fd, offset);
|
||||
|
||||
if (mmapregion == NULL) {
|
||||
|
@ -396,8 +396,8 @@ gst_filesrc_map_region (GstFileSrc *src, off_t offset, size_t size)
|
|||
return NULL;
|
||||
}
|
||||
else if (mmapregion == MAP_FAILED) {
|
||||
GST_DEBUG (0, "mmap (0x%x, %d, 0x%llx) : %s",
|
||||
size, src->fd, offset, strerror (errno));
|
||||
GST_DEBUG (0, "mmap (0x%lx, %d, 0x%llx) : %s",
|
||||
(unsigned long)size, src->fd, offset, strerror (errno));
|
||||
return NULL;
|
||||
}
|
||||
GST_DEBUG (0, "mapped region %08lx+%08lx from file into memory at %p",
|
||||
|
|
|
@ -388,7 +388,7 @@ gst_filesrc_map_region (GstFileSrc *src, off_t offset, size_t size)
|
|||
|
||||
g_return_val_if_fail (offset >= 0, NULL);
|
||||
|
||||
fs_print ("mapping region %08llx+%08x from file into memory\n",offset,size);
|
||||
fs_print ("mapping region %08llx+%08lx from file into memory\n",offset,(unsigned long)size);
|
||||
mmapregion = mmap (NULL, size, PROT_READ, MAP_SHARED, src->fd, offset);
|
||||
|
||||
if (mmapregion == NULL) {
|
||||
|
@ -396,8 +396,8 @@ gst_filesrc_map_region (GstFileSrc *src, off_t offset, size_t size)
|
|||
return NULL;
|
||||
}
|
||||
else if (mmapregion == MAP_FAILED) {
|
||||
GST_DEBUG (0, "mmap (0x%x, %d, 0x%llx) : %s",
|
||||
size, src->fd, offset, strerror (errno));
|
||||
GST_DEBUG (0, "mmap (0x%lx, %d, 0x%llx) : %s",
|
||||
(unsigned long)size, src->fd, offset, strerror (errno));
|
||||
return NULL;
|
||||
}
|
||||
GST_DEBUG (0, "mapped region %08lx+%08lx from file into memory at %p",
|
||||
|
|
Loading…
Reference in a new issue