mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	stream: remember the source path
This commit is contained in:
		
							parent
							
								
									c875141e69
								
							
						
					
					
						commit
						c3fce0103b
					
				
					 1 changed files with 11 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -508,6 +508,17 @@ on_source_output_proxy (GObject      *source_object,
 | 
			
		|||
  if (priv->source_output == NULL)
 | 
			
		||||
    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");
 | 
			
		||||
  if (v) {
 | 
			
		||||
    gsize len;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue