mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	protocol: also return marshal with higher version
The marshaller needs to be of the requested version or newer.
This commit is contained in:
		
							parent
							
								
									d25bb0e20f
								
							
						
					
					
						commit
						edfa210656
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -166,7 +166,7 @@ pw_protocol_get_marshal(struct pw_protocol *protocol, const char *type, uint32_t
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	spa_list_for_each(impl, &protocol->marshal_list, link) {
 | 
						spa_list_for_each(impl, &protocol->marshal_list, link) {
 | 
				
			||||||
		if (spa_streq(impl->marshal->type, type) &&
 | 
							if (spa_streq(impl->marshal->type, type) &&
 | 
				
			||||||
		    impl->marshal->version == version &&
 | 
							    impl->marshal->version >= version &&
 | 
				
			||||||
		    (impl->marshal->flags & flags) == flags)
 | 
							    (impl->marshal->flags & flags) == flags)
 | 
				
			||||||
                        return impl->marshal;
 | 
					                        return impl->marshal;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue