mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	audioconvert: use the right variable
Keep the result of the follower in res2, fail if we could not set the properties on both the follower and the converter.
This commit is contained in:
		
							parent
							
								
									9fa72f22cb
								
							
						
					
					
						commit
						acad6b8f2b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -453,7 +453,7 @@ static int impl_node_set_param(void *object, uint32_t id, uint32_t flags,
 | 
				
			||||||
	case SPA_PARAM_Props:
 | 
						case SPA_PARAM_Props:
 | 
				
			||||||
		if (this->target != this->follower)
 | 
							if (this->target != this->follower)
 | 
				
			||||||
			res = spa_node_set_param(this->target, id, flags, param);
 | 
								res = spa_node_set_param(this->target, id, flags, param);
 | 
				
			||||||
		res = spa_node_set_param(this->follower, id, flags, param);
 | 
							res2 = spa_node_set_param(this->follower, id, flags, param);
 | 
				
			||||||
		if (res < 0 && res2 < 0)
 | 
							if (res < 0 && res2 < 0)
 | 
				
			||||||
			return res;
 | 
								return res;
 | 
				
			||||||
		res = 0;
 | 
							res = 0;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue