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
							
								
									23b0ff136a
								
							
						
					
					
						commit
						165bd9965b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -3881,7 +3881,7 @@ void spa_alsa_emit_node_info(struct state *state, bool full)
 | 
				
			||||||
			snprintf(nperiods, sizeof(nperiods), "%lu",
 | 
								snprintf(nperiods, sizeof(nperiods), "%lu",
 | 
				
			||||||
					state->period_frames != 0 ? state->buffer_frames / state->period_frames : 0);
 | 
										state->period_frames != 0 ? state->buffer_frames / state->period_frames : 0);
 | 
				
			||||||
		else if (state->default_period_num)
 | 
							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);
 | 
							items[n_items++] = SPA_DICT_ITEM_INIT("api.alsa.period-num", nperiods[0] ? nperiods : NULL);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (state->have_format)
 | 
							if (state->have_format)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue