projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f26bcae
)
device-port: Return early from pa_device_port_set_latency_offset() if the offset...
author
Tanu Kaskinen
<tanuk@iki.fi>
Tue, 22 Jan 2013 06:48:02 +0000
(08:48 +0200)
committer
Tanu Kaskinen
<tanuk@iki.fi>
Tue, 22 Jan 2013 06:48:02 +0000
(08:48 +0200)
This avoids sending change notifications when nothing changes.
src/pulsecore/device-port.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/device-port.c
b/src/pulsecore/device-port.c
index
fa78e08
..
6d787ac
100644
(file)
--- a/
src/pulsecore/device-port.c
+++ b/
src/pulsecore/device-port.c
@@
-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) {