mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	alsa-seq: attempt to get more data in timeout
Also emit the NEED_DATA status so that the graph will pull in new midi data even when we don't output anything. Fixes #2775
This commit is contained in:
		
							parent
							
								
									f7c4909243
								
							
						
					
					
						commit
						4c1115cf1d
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -803,8 +803,8 @@ static void alsa_on_timeout_event(struct spa_source *source)
 | 
			
		|||
	update_time(state, state->current_time, false);
 | 
			
		||||
 | 
			
		||||
	res = process_read(state);
 | 
			
		||||
	if (res > 0)
 | 
			
		||||
		spa_node_call_ready(&state->callbacks, res);
 | 
			
		||||
	if (res >= 0)
 | 
			
		||||
		spa_node_call_ready(&state->callbacks, res | SPA_STATUS_NEED_DATA);
 | 
			
		||||
 | 
			
		||||
	set_timeout(state, state->next_time);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue