From 9edb0c1206e2639f7c3a80b069c10d0e39cdf218 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 4 Aug 2020 17:21:15 +0200 Subject: pulse: actually remember the default source --- pipewire-pulseaudio/src/context.c | 1 + 1 file changed, 1 insertion(+) (limited to 'pipewire-pulseaudio') 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); -- cgit v1.2.3