summaryrefslogtreecommitdiff
path: root/pipewire-pulseaudio
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2020-08-04 17:21:15 +0200
committerWim Taymans <wtaymans@redhat.com>2020-08-04 17:21:15 +0200
commit9edb0c1206e2639f7c3a80b069c10d0e39cdf218 (patch)
tree11210ff4c4f7ce5d2cd2e6e373838196cf1d82b2 /pipewire-pulseaudio
parentdb12f47505ddccb257acdc0fa2bb884aceb1b593 (diff)
pulse: actually remember the default source
Diffstat (limited to 'pipewire-pulseaudio')
-rw-r--r--pipewire-pulseaudio/src/context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pipewire-pulseaudio/src/context.c b/pipewire-pulseaudio/src/context.c
index 1c9f95a5..35414cec 100644
--- a/pipewire-pulseaudio/src/context.c
+++ b/pipewire-pulseaudio/src/context.c
@@ -995,6 +995,7 @@ static int metadata_property(void *object,
} else if (key && strcmp(key, METADATA_DEFAULT_SOURCE) == 0) {
val = value ? (uint32_t)atoi(value) : SPA_ID_INVALID;
changed = c->default_source != val;
+ c->default_source = val;
}
if (changed)
emit_event(global->context, global, PA_SUBSCRIPTION_EVENT_CHANGE);