mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
device-port: Return early from pa_device_port_set_latency_offset() if the offset doesn't change.
This avoids sending change notifications when nothing changes.
This commit is contained in:
parent
f26bcae28e
commit
78df02dba6
1 changed files with 3 additions and 0 deletions
|
|
@ -104,6 +104,9 @@ void pa_device_port_set_latency_offset(pa_device_port *p, int64_t offset) {
|
|||
|
||||
pa_assert(p);
|
||||
|
||||
if (offset == p->latency_offset)
|
||||
return;
|
||||
|
||||
p->latency_offset = offset;
|
||||
|
||||
if (p->is_output) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue