mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	client-source: set format on client source
Set the format on the client source when it is created so that other clients can inspect the format. It also makes client sources show up in the device monitor.
This commit is contained in:
		
							parent
							
								
									81b7f15a0c
								
							
						
					
					
						commit
						1fec75d2a5
					
				
					 5 changed files with 109 additions and 20 deletions
				
			
		| 
						 | 
				
			
			@ -417,6 +417,19 @@ pinos_source_report_error (PinosSource *source,
 | 
			
		|||
  g_object_notify (G_OBJECT (source), "state");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
pinos_source_update_possible_formats (PinosSource *source, GBytes *formats)
 | 
			
		||||
{
 | 
			
		||||
  PinosSourcePrivate *priv;
 | 
			
		||||
 | 
			
		||||
  g_return_if_fail (PINOS_IS_SOURCE (source));
 | 
			
		||||
  priv = source->priv;
 | 
			
		||||
 | 
			
		||||
  g_object_set (priv->iface, "possible-formats",
 | 
			
		||||
                g_bytes_get_data (formats, NULL),
 | 
			
		||||
                NULL);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
PinosSourceOutput *
 | 
			
		||||
pinos_source_create_source_output (PinosSource *source,
 | 
			
		||||
                                   const gchar *client_path,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue