mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	source: set our possible-formats
This commit is contained in:
		
							parent
							
								
									9895395ab9
								
							
						
					
					
						commit
						b85fd0ed25
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -136,6 +136,9 @@ source_register_object (PinosSource *source)
 | 
			
		|||
  PinosSourcePrivate *priv = source->priv;
 | 
			
		||||
  PinosDaemon *daemon = priv->daemon;
 | 
			
		||||
  PinosObjectSkeleton *skel;
 | 
			
		||||
  GBytes *formats;
 | 
			
		||||
 | 
			
		||||
  formats = pinos_source_get_formats (source, NULL);
 | 
			
		||||
 | 
			
		||||
  skel = pinos_object_skeleton_new (PINOS_DBUS_OBJECT_SOURCE);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -143,8 +146,10 @@ source_register_object (PinosSource *source)
 | 
			
		|||
  g_object_set (priv->iface, "name", priv->name,
 | 
			
		||||
                             "state", priv->state,
 | 
			
		||||
                             "properties", priv->properties,
 | 
			
		||||
                             "possible-formats", g_bytes_get_data (formats, NULL),
 | 
			
		||||
                             NULL);
 | 
			
		||||
  pinos_object_skeleton_set_source1 (skel, priv->iface);
 | 
			
		||||
  g_bytes_unref (formats);
 | 
			
		||||
 | 
			
		||||
  g_free (priv->object_path);
 | 
			
		||||
  priv->object_path = pinos_daemon_export_uniquely (daemon, G_DBUS_OBJECT_SKELETON (skel));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue