mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
alsa: update the clock name when we can
Update the clock name as soon as we get a io_clock. This way we can use it to compare the clock name against the driver right away.
This commit is contained in:
parent
354ee6fd96
commit
4ffa7860bc
3 changed files with 17 additions and 13 deletions
|
|
@ -252,9 +252,13 @@ static int impl_node_set_io(void *object, uint32_t id, void *data, size_t size)
|
|||
|
||||
switch (id) {
|
||||
case SPA_IO_Clock:
|
||||
if (size > 0 && size < sizeof(struct spa_io_clock))
|
||||
return -EINVAL;
|
||||
this->clock = data;
|
||||
break;
|
||||
case SPA_IO_Position:
|
||||
if (size > 0 && size < sizeof(struct spa_io_position))
|
||||
return -EINVAL;
|
||||
this->position = data;
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue