impl-node: update quantum/rate only when pending changes

Only update the quantum/rate when we have a pending change.

This works around a bug in sco-source that changes the quantum
by itself but in any case, this optimization is nice to have.

See #1905
This commit is contained in:
Wim Taymans 2021-12-15 10:45:48 +01:00
parent c903c2ca08
commit c97d489929
3 changed files with 9 additions and 2 deletions

View file

@ -684,6 +684,7 @@ struct pw_impl_node {
unsigned int lock_quantum:1; /**< don't change graph quantum */
unsigned int lock_rate:1; /**< don't change graph rate */
unsigned int transport_sync:1; /**< supports transport sync */
unsigned int current_pending:1; /**< a quantum/rate update is pending */
uint32_t port_user_data_size; /**< extra size for port user data */