mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	alsa: Correctly bail if pitch ctls are not available
The `goto error` got misplaced while refactoring this code for bind-ctls.
This commit is contained in:
		
							parent
							
								
									979ad775d3
								
							
						
					
					
						commit
						d49ceba2ac
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -902,8 +902,9 @@ static int probe_pitch_ctl(struct state *state, const char* device_name)
 | 
				
			||||||
		if (opened) {
 | 
							if (opened) {
 | 
				
			||||||
			snd_ctl_close(state->ctl);
 | 
								snd_ctl_close(state->ctl);
 | 
				
			||||||
			state->ctl = NULL;
 | 
								state->ctl = NULL;
 | 
				
			||||||
			goto error;
 | 
					 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							goto error;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	snd_ctl_elem_value_set_integer(state->pitch_elem, 0, 1000000);
 | 
						snd_ctl_elem_value_set_integer(state->pitch_elem, 0, 1000000);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue