stream: remember the source path

This commit is contained in:
Wim Taymans 2015-12-09 11:23:14 +01:00
parent c875141e69
commit c3fce0103b

View file

@ -508,6 +508,17 @@ on_source_output_proxy (GObject *source_object,
if (priv->source_output == NULL) if (priv->source_output == NULL)
goto source_output_failed; 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"); v = g_dbus_proxy_get_cached_property (priv->source_output, "PossibleFormats");
if (v) { if (v) {
gsize len; gsize len;