mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	introspect: improve instrospection
Pass changed properties around so that we can print them
This commit is contained in:
		
							parent
							
								
									51f18b540a
								
							
						
					
					
						commit
						8361f74646
					
				
					 8 changed files with 110 additions and 59 deletions
				
			
		| 
						 | 
				
			
			@ -227,10 +227,10 @@ source_fill_info (PinosSourceInfo *info, GDBusProxy *proxy)
 | 
			
		|||
  if ((variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "PossibleFormats"))) {
 | 
			
		||||
    gsize len;
 | 
			
		||||
    gchar *formats = g_variant_dup_string (variant, &len);
 | 
			
		||||
    info->formats = g_bytes_new_take (formats, len + 1);
 | 
			
		||||
    info->possible_formats = g_bytes_new_take (formats, len + 1);
 | 
			
		||||
    g_variant_unref (variant);
 | 
			
		||||
  } else {
 | 
			
		||||
    info->formats = NULL;
 | 
			
		||||
    info->possible_formats = NULL;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -239,8 +239,8 @@ source_clear_info (PinosSourceInfo *info)
 | 
			
		|||
{
 | 
			
		||||
  if (info->properties)
 | 
			
		||||
    pinos_properties_free (info->properties);
 | 
			
		||||
  if (info->formats)
 | 
			
		||||
    g_bytes_unref (info->formats);
 | 
			
		||||
  if (info->possible_formats)
 | 
			
		||||
    g_bytes_unref (info->possible_formats);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue