mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	alsa: show correct value in api.alsa.period-num
This commit is contained in:
		
							parent
							
								
									22e80e228c
								
							
						
					
					
						commit
						618d60a1f2
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -3883,7 +3883,7 @@ void spa_alsa_emit_node_info(struct state *state, bool full)
 | 
			
		|||
			snprintf(nperiods, sizeof(nperiods), "%lu",
 | 
			
		||||
					state->period_frames != 0 ? state->buffer_frames / state->period_frames : 0);
 | 
			
		||||
		else if (state->default_period_num)
 | 
			
		||||
			snprintf(nperiods, sizeof(nperiods), "%u", state->default_period_size);
 | 
			
		||||
			snprintf(nperiods, sizeof(nperiods), "%u", state->default_period_num);
 | 
			
		||||
		items[n_items++] = SPA_DICT_ITEM_INIT("api.alsa.period-num", nperiods[0] ? nperiods : NULL);
 | 
			
		||||
 | 
			
		||||
		if (state->have_format)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue