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:
Tanu Kaskinen 2013-01-22 08:48:02 +02:00
parent f26bcae28e
commit 78df02dba6

View file

@ -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) {