mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-15 07:00:05 -05:00
spa: make fd in spa_data an int64_t
So that we can store other things in it later as well.
This commit is contained in:
parent
569cbb48a9
commit
8a9c1129a2
3 changed files with 4 additions and 4 deletions
|
|
@ -528,7 +528,7 @@ static int map_data(struct stream *impl, struct spa_data *data, int prot)
|
|||
return -errno;
|
||||
}
|
||||
data->data = SPA_MEMBER(ptr, range.start, void);
|
||||
pw_log_debug("stream %p: fd %d mapped %d %d %p", impl, data->fd,
|
||||
pw_log_debug("stream %p: fd %"PRIi64" mapped %d %d %p", impl, data->fd,
|
||||
range.offset, range.size, data->data);
|
||||
|
||||
return 0;
|
||||
|
|
@ -543,7 +543,7 @@ static int unmap_data(struct stream *impl, struct spa_data *data)
|
|||
if (munmap(SPA_MEMBER(data->data, -range.start, void), range.size) < 0)
|
||||
pw_log_warn("failed to unmap: %m");
|
||||
|
||||
pw_log_debug("stream %p: fd %d unmapped", impl, data->fd);
|
||||
pw_log_debug("stream %p: fd %"PRIi64" unmapped", impl, data->fd);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue