mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
fix device provider
This commit is contained in:
parent
85d375e4bb
commit
a8964ca657
1 changed files with 9 additions and 4 deletions
|
|
@ -190,7 +190,7 @@ new_node (const PinosNodeInfo *info)
|
||||||
{
|
{
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
GstStructure *props;
|
GstStructure *props;
|
||||||
const gchar *klass;
|
const gchar *klass = NULL;
|
||||||
SpaDictItem *item;
|
SpaDictItem *item;
|
||||||
|
|
||||||
/* FIXME, iterate ports */
|
/* FIXME, iterate ports */
|
||||||
|
|
@ -202,10 +202,12 @@ new_node (const PinosNodeInfo *info)
|
||||||
caps = gst_caps_new_any();
|
caps = gst_caps_new_any();
|
||||||
|
|
||||||
props = gst_structure_new_empty ("pinos-proplist");
|
props = gst_structure_new_empty ("pinos-proplist");
|
||||||
spa_dict_for_each (item, info->props)
|
if (info->props) {
|
||||||
gst_structure_set (props, item->key, G_TYPE_STRING, item->value, NULL);
|
spa_dict_for_each (item, info->props)
|
||||||
|
gst_structure_set (props, item->key, G_TYPE_STRING, item->value, NULL);
|
||||||
|
|
||||||
klass = spa_dict_lookup (info->props, "gstreamer.device.class");
|
klass = spa_dict_lookup (info->props, "gstreamer.device.class");
|
||||||
|
}
|
||||||
if (klass == NULL)
|
if (klass == NULL)
|
||||||
klass = "unknown/unknown";
|
klass = "unknown/unknown";
|
||||||
|
|
||||||
|
|
@ -313,6 +315,9 @@ get_core_info_cb (PinosContext *c,
|
||||||
GstDeviceProvider *provider = user_data;
|
GstDeviceProvider *provider = user_data;
|
||||||
const gchar *value;
|
const gchar *value;
|
||||||
|
|
||||||
|
if (info == NULL || info->props == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
value = spa_dict_lookup (info->props, "gstreamer.deviceproviders");
|
value = spa_dict_lookup (info->props, "gstreamer.deviceproviders");
|
||||||
if (value) {
|
if (value) {
|
||||||
gchar **providers = g_strsplit (value, ",", -1);
|
gchar **providers = g_strsplit (value, ",", -1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue