summaryrefslogtreecommitdiff
path: root/pipewire-pulseaudio
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2020-08-19 16:49:02 +0200
committerWim Taymans <wtaymans@redhat.com>2020-08-19 16:49:02 +0200
commit5037a97690b32eadf71329a3d6a5f5a922695489 (patch)
treefff084255cc7a4071c5c1c77d0ea53e62aaa5f85 /pipewire-pulseaudio
parentbb323a82a74ccf03fa4cf00124445d0aca1e2be0 (diff)
stream: call started callback when started
.. instead of the suspended callback
Diffstat (limited to 'pipewire-pulseaudio')
-rw-r--r--pipewire-pulseaudio/src/stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pipewire-pulseaudio/src/stream.c b/pipewire-pulseaudio/src/stream.c
index 7ab0b249..b83aaa5a 100644
--- a/pipewire-pulseaudio/src/stream.c
+++ b/pipewire-pulseaudio/src/stream.c
@@ -128,8 +128,8 @@ static void stream_state_changed(void *data, enum pw_stream_state old,
s->suspended = true;
break;
case PW_STREAM_STATE_STREAMING:
- if (s->suspended && !c->disconnect && s->suspended_callback) {
- s->suspended_callback(s, s->suspended_userdata);
+ if (s->suspended && !c->disconnect && s->started_callback) {
+ s->started_callback(s, s->started_userdata);
}
s->suspended = false;
configure_device(s);