[pulseaudio-commits] Branch 'next' - src/pulsecore

Tanu Kaskinen tanuk at kemper.freedesktop.org
Thu Jun 2 13:48:12 UTC 2016


 src/pulsecore/source.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 88a275b34e01e61148e9e9f5f18a1017921dfc15
Author: Chris Billington <chrisjbillington at gmail.com>
Date:   Sat Jan 23 12:31:33 2016 +1100

    source: Fixed bug: pa_source_set_port() did not update the latency_offset.
    
    Unlike pa_sink_set_port(), which calls pa_sink_set_latency_offset() to update
    the latency offset of the sink to match that of its newly set port,
    pa_source_set_port() did not do so. This patch adds the appropriate call to
    pa_source_set_latency_offset() in pa_source_set_port() to fix this.

diff --git a/src/pulsecore/source.c b/src/pulsecore/source.c
index 8a527d8..ee77425 100644
--- a/src/pulsecore/source.c
+++ b/src/pulsecore/source.c
@@ -2637,6 +2637,8 @@ int pa_source_set_port(pa_source *s, const char *name, bool save) {
     s->active_port = port;
     s->save_port = save;
 
+    pa_source_set_latency_offset(s, s->active_port->latency_offset);
+
     pa_hook_fire(&s->core->hooks[PA_CORE_HOOK_SOURCE_PORT_CHANGED], s);
 
     return 0;



More information about the pulseaudio-commits mailing list