mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
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.
This commit is contained in:
parent
e3148f9ac2
commit
d2d3d0e141
1 changed files with 2 additions and 0 deletions
|
|
@ -2637,6 +2637,8 @@ int pa_source_set_port(pa_source *s, const char *name, bool save) {
|
||||||
s->active_port = port;
|
s->active_port = port;
|
||||||
s->save_port = save;
|
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);
|
pa_hook_fire(&s->core->hooks[PA_CORE_HOOK_SOURCE_PORT_CHANGED], s);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue