mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
evl: fix timerfd read
It should read uint64_t now. Tested: Jorge Ramirez-Ortiz <jorge@foundries.io>
This commit is contained in:
parent
ea0e92c5d9
commit
f5d1d7e683
1 changed files with 1 additions and 3 deletions
|
|
@ -249,10 +249,8 @@ static int impl_timerfd_gettime(void *object,
|
|||
}
|
||||
static int impl_timerfd_read(void *object, int fd, uint64_t *expirations)
|
||||
{
|
||||
uint32_t ticks;
|
||||
if (oob_read(fd, &ticks, sizeof(ticks)) != sizeof(ticks))
|
||||
if (oob_read(fd, expirations, sizeof(uint64_t)) != sizeof(uint64_t))
|
||||
return -errno;
|
||||
*expirations = ticks;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue