pvsrc: implement source selection

Allow pvsrc to select what source to connect to.
This commit is contained in:
Wim Taymans 2015-05-20 12:01:13 +02:00
parent 98861cb940
commit 4a61f988dc
6 changed files with 81 additions and 40 deletions

View file

@ -474,8 +474,8 @@ do_connect_capture (PvStream *stream)
g_dbus_proxy_call (context->priv->client,
"CreateSourceOutput",
g_variant_new ("(os)",
(priv->target ? priv->target : "/"),
g_variant_new ("(ss)",
(priv->target ? priv->target : ""),
g_bytes_get_data (priv->accepted_formats, NULL)),
G_DBUS_CALL_FLAGS_NONE,
-1,