mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	work on memory references
Add a memory reference helper struct that we can use to track the memory in buffers and formats. Remove custom property get and set, the default ones will work fine. Custom ones are problematic when we want to serialize properties in formats etc. Deserialized Formats are now tracked in the memory pool and can be freed if needed.
This commit is contained in:
		
							parent
							
								
									8f9222bf9e
								
							
						
					
					
						commit
						dd1fbef28f
					
				
					 23 changed files with 166 additions and 138 deletions
				
			
		| 
						 | 
				
			
			@ -693,8 +693,6 @@ volume_instantiate (const SpaHandleFactory  *factory,
 | 
			
		|||
  this->node.handle = handle;
 | 
			
		||||
  this->props[1].props.n_prop_info = PROP_ID_LAST;
 | 
			
		||||
  this->props[1].props.prop_info = prop_info;
 | 
			
		||||
  this->props[1].props.set_prop = spa_props_generic_set_prop;
 | 
			
		||||
  this->props[1].props.get_prop = spa_props_generic_get_prop;
 | 
			
		||||
  reset_volume_props (&this->props[1]);
 | 
			
		||||
 | 
			
		||||
  this->ports[0].info.flags = SPA_PORT_INFO_FLAG_CAN_USE_BUFFER |
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue