mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	bluez5: drop queued data on node stop
Clear queued buffers when stopping consuming, to ensure that all buffers are usable when we start again. Do for A2DP as we already do for SCO.
This commit is contained in:
		
							parent
							
								
									60deeb2555
								
							
						
					
					
						commit
						513495eaaa
					
				
					 2 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1331,6 +1331,9 @@ static int do_remove_transport_source(struct spa_loop *loop,
 | 
			
		|||
	if (this->transport->iso_io)
 | 
			
		||||
		spa_bt_iso_io_set_cb(this->transport->iso_io, NULL, NULL);
 | 
			
		||||
 | 
			
		||||
	/* Drop queued data */
 | 
			
		||||
	drop_frames(this, UINT32_MAX);
 | 
			
		||||
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -802,7 +802,7 @@ static int do_remove_transport_source(struct spa_loop *loop,
 | 
			
		|||
		spa_loop_remove_source(this->data_loop, &this->flush_timer_source);
 | 
			
		||||
	enable_flush_timer(this, false);
 | 
			
		||||
 | 
			
		||||
	/* Drop buffered data in the ready queue. Ideally there shouldn't be any. */
 | 
			
		||||
	/* Drop queued data */
 | 
			
		||||
	drop_port_output(this);
 | 
			
		||||
 | 
			
		||||
	return 0;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue