mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-10-29 05:40:27 -04:00 
			
		
		
		
	alsa-pcm: call reuse_buffers when resetting the state of the buffers
This allows the upstream node to put buffers back to its pool in case they were left around in the ready list locally when the alsa-pcm-sink was last paused. Fixes #203
This commit is contained in:
		
							parent
							
								
									6ed219c48c
								
							
						
					
					
						commit
						0c63d045ee
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -1117,6 +1117,7 @@ static void reset_buffers(struct state *this) | ||||||
| 		struct buffer *b = &this->buffers[i]; | 		struct buffer *b = &this->buffers[i]; | ||||||
| 		if (this->stream == SND_PCM_STREAM_PLAYBACK) { | 		if (this->stream == SND_PCM_STREAM_PLAYBACK) { | ||||||
| 			SPA_FLAG_SET(b->flags, BUFFER_FLAG_OUT); | 			SPA_FLAG_SET(b->flags, BUFFER_FLAG_OUT); | ||||||
|  | 			spa_node_call_reuse_buffer(&this->callbacks, 0, b->id); | ||||||
| 		} else { | 		} else { | ||||||
| 			spa_list_append(&this->free, &b->link); | 			spa_list_append(&this->free, &b->link); | ||||||
| 			SPA_FLAG_CLEAR(b->flags, BUFFER_FLAG_OUT); | 			SPA_FLAG_CLEAR(b->flags, BUFFER_FLAG_OUT); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 George Kiagiadakis
						George Kiagiadakis