mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse-server: fix active_port check in volume/mute
This commit is contained in:
		
							parent
							
								
									7cd8d566f7
								
							
						
					
					
						commit
						b50929d200
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -2302,7 +2302,7 @@ static int do_set_volume(struct client *client, uint32_t command, uint32_t tag,
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	collect_device_info(o, card, &dev_info);
 | 
						collect_device_info(o, card, &dev_info);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (card != NULL && dev_info.active_port)
 | 
						if (card != NULL && dev_info.active_port != SPA_ID_INVALID)
 | 
				
			||||||
		res = set_card_volume_mute(card, dev_info.active_port,
 | 
							res = set_card_volume_mute(card, dev_info.active_port,
 | 
				
			||||||
				dev_info.device, &volume, NULL);
 | 
									dev_info.device, &volume, NULL);
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
| 
						 | 
					@ -2364,7 +2364,7 @@ static int do_set_mute(struct client *client, uint32_t command, uint32_t tag, st
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	collect_device_info(o, card, &dev_info);
 | 
						collect_device_info(o, card, &dev_info);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (card != NULL && dev_info.active_port)
 | 
						if (card != NULL && dev_info.active_port != SPA_ID_INVALID)
 | 
				
			||||||
		res = set_card_volume_mute(card, dev_info.active_port,
 | 
							res = set_card_volume_mute(card, dev_info.active_port,
 | 
				
			||||||
				dev_info.device, NULL, &mute);
 | 
									dev_info.device, NULL, &mute);
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue