mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	sco-sink: don't stop timeouts if more data is needed
The sink timeouts need to continue even if there is currently not enough data, as otherwise playback will stop.
This commit is contained in:
		
							parent
							
								
									d99ac615b2
								
							
						
					
					
						commit
						d1b1b84935
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -349,6 +349,10 @@ static void flush_data(struct impl *this)
 | 
				
			||||||
		port->current_buffer = NULL;
 | 
							port->current_buffer = NULL;
 | 
				
			||||||
		port->io->status = SPA_STATUS_NEED_DATA;
 | 
							port->io->status = SPA_STATUS_NEED_DATA;
 | 
				
			||||||
		spa_node_call_ready(&this->callbacks, SPA_STATUS_NEED_DATA);
 | 
							spa_node_call_ready(&this->callbacks, SPA_STATUS_NEED_DATA);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							next_timeout = (this->transport->write_mtu / port->frame_size
 | 
				
			||||||
 | 
									* SPA_NSEC_PER_SEC / port->current_format.info.raw.rate);
 | 
				
			||||||
 | 
							set_timeout(this, next_timeout);
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue