From c3fce0103bcdbbbf0404dd95fa4a5f2a469cedc8 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 9 Dec 2015 11:23:14 +0100 Subject: [PATCH] stream: remember the source path --- src/client/stream.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/client/stream.c b/src/client/stream.c index 4457e740b..a8ebfe3f3 100644 --- a/src/client/stream.c +++ b/src/client/stream.c @@ -508,6 +508,17 @@ on_source_output_proxy (GObject *source_object, if (priv->source_output == NULL) goto source_output_failed; + /* get the source we are connected to */ + v = g_dbus_proxy_get_cached_property (priv->source_output, "Source"); + if (v) { + gsize len; + str = g_variant_dup_string (v, &len); + g_variant_unref (v); + + g_free (priv->source_path); + priv->source_path = str; + } + v = g_dbus_proxy_get_cached_property (priv->source_output, "PossibleFormats"); if (v) { gsize len;