mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	props: remove pointers in property values in protocol
Mark pointers in property values with pointer: and remove them when sending the properties over the wire to avoid errors.
This commit is contained in:
		
							parent
							
								
									f8127943cd
								
							
						
					
					
						commit
						0e765de519
					
				
					 9 changed files with 166 additions and 147 deletions
				
			
		| 
						 | 
				
			
			@ -1178,7 +1178,7 @@ impl_init(const struct spa_handle_factory *factory,
 | 
			
		|||
 | 
			
		||||
	for (i = 0; info && i < info->n_items; i++) {
 | 
			
		||||
		if (strcmp(info->items[i].key, SPA_KEY_API_BLUEZ5_TRANSPORT) == 0)
 | 
			
		||||
			sscanf(info->items[i].value, "%p", &this->transport);
 | 
			
		||||
			sscanf(info->items[i].value, "pointer:%p", &this->transport);
 | 
			
		||||
	}
 | 
			
		||||
	if (this->transport == NULL) {
 | 
			
		||||
		spa_log_error(this->log, "a transport is needed");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue