mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -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;
 | 
			
		||||
  GstStructure *props;
 | 
			
		||||
  const gchar *klass;
 | 
			
		||||
  const gchar *klass = NULL;
 | 
			
		||||
  SpaDictItem *item;
 | 
			
		||||
 | 
			
		||||
  /* FIXME, iterate ports */
 | 
			
		||||
| 
						 | 
				
			
			@ -202,10 +202,12 @@ new_node (const PinosNodeInfo *info)
 | 
			
		|||
    caps = gst_caps_new_any();
 | 
			
		||||
 | 
			
		||||
  props = gst_structure_new_empty ("pinos-proplist");
 | 
			
		||||
  spa_dict_for_each (item, info->props)
 | 
			
		||||
    gst_structure_set (props, item->key, G_TYPE_STRING, item->value, NULL);
 | 
			
		||||
  if (info->props) {
 | 
			
		||||
    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)
 | 
			
		||||
    klass = "unknown/unknown";
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -313,6 +315,9 @@ get_core_info_cb (PinosContext        *c,
 | 
			
		|||
  GstDeviceProvider *provider = user_data;
 | 
			
		||||
  const gchar *value;
 | 
			
		||||
 | 
			
		||||
  if (info == NULL || info->props == NULL)
 | 
			
		||||
    return;
 | 
			
		||||
 | 
			
		||||
  value = spa_dict_lookup (info->props, "gstreamer.deviceproviders");
 | 
			
		||||
  if (value) {
 | 
			
		||||
    gchar **providers = g_strsplit (value, ",", -1);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue