summaryrefslogtreecommitdiff
path: root/pipewire-pulseaudio
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2020-08-19 16:49:30 +0200
committerWim Taymans <wtaymans@redhat.com>2020-08-19 16:49:30 +0200
commitcde6b99890bff1964c6582ea6442d279cc69abcd (patch)
treedb96d568c797ee3f6df65d0b2b601c6a64f01f26 /pipewire-pulseaudio
parent5037a97690b32eadf71329a3d6a5f5a922695489 (diff)
stream: call latency_update callback
Diffstat (limited to 'pipewire-pulseaudio')
-rw-r--r--pipewire-pulseaudio/src/stream.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/pipewire-pulseaudio/src/stream.c b/pipewire-pulseaudio/src/stream.c
index b83aaa5a..4d1955bd 100644
--- a/pipewire-pulseaudio/src/stream.c
+++ b/pipewire-pulseaudio/src/stream.c
@@ -1337,10 +1337,14 @@ static void on_timing_success(pa_operation *o, void *userdata)
pa_stream *s = o->stream;
update_timing_info(s);
- pa_operation_done(o);
+
+ if (s->latency_update_callback)
+ s->latency_update_callback(s, s->latency_update_userdata);
if (d->cb)
d->cb(s, s->timing_info_valid, d->userdata);
+
+ pa_operation_done(o);
}
SPA_EXPORT