mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	protocol: improve old version check
Check if the pod size is > 4 because the unit test adds one fd in the first message.
This commit is contained in:
		
							parent
							
								
									043e7f24fe
								
							
						
					
					
						commit
						1cedfade3a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -313,7 +313,7 @@ static int prepare_packet(struct pw_protocol_native_connection *conn, struct buf
 | 
			
		|||
 | 
			
		||||
	if (buf->first) {
 | 
			
		||||
		buf->first = false;
 | 
			
		||||
		if (p[3] != 0) {
 | 
			
		||||
		if (p[3] >= 4) {
 | 
			
		||||
			pw_log_warn("old version detected");
 | 
			
		||||
			impl->version = 0;
 | 
			
		||||
			impl->hdr_size = 8;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue