mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
params: add function to compare process_latency_info
This commit is contained in:
parent
1e5c86e1dc
commit
e15244b1e1
1 changed files with 11 additions and 0 deletions
|
|
@ -146,6 +146,17 @@ spa_process_latency_info_add(const struct spa_process_latency_info *process,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static inline int
|
||||
spa_process_latency_info_compare(const struct spa_process_latency_info *a,
|
||||
const struct spa_process_latency_info *b)
|
||||
{
|
||||
if (a->quantum == b->quantum &&
|
||||
a->rate == b->rate &&
|
||||
a->ns == b->ns)
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* \}
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue