mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	impl-node: add backwards compat for old clients
Bump the client-node version to 6. Older clients expect the server to prepare the activation counters so make a flag to do that.
This commit is contained in:
		
							parent
							
								
									46f71b1cd2
								
							
						
					
					
						commit
						722e646f90
					
				
					 4 changed files with 26 additions and 10 deletions
				
			
		| 
						 | 
				
			
			@ -1799,6 +1799,13 @@ struct pw_impl_client_node *pw_impl_client_node_new(struct pw_resource *resource
 | 
			
		|||
 | 
			
		||||
	this->node->remote = true;
 | 
			
		||||
	this->flags = 0;
 | 
			
		||||
	if (resource->version < 5) {
 | 
			
		||||
		pw_log_warn("using server side driver for old client version %d", resource->version);
 | 
			
		||||
	}
 | 
			
		||||
	if (resource->version < 6) {
 | 
			
		||||
		this->node->server_prepare = true;
 | 
			
		||||
		pw_log_warn("using server side prepare for old client version %d", resource->version);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	pw_resource_add_listener(this->resource,
 | 
			
		||||
				&impl->resource_listener,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue