mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-10-29 05:40:27 -04:00 
			
		
		
		
	alsa: destroy stream first and then context
This makes things more deterministic.
This commit is contained in:
		
							parent
							
								
									eca2bbb892
								
							
						
					
					
						commit
						f6f10669a0
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -149,6 +149,8 @@ static void snd_pcm_pipewire_free(snd_pcm_pipewire_t *pw) | |||
| 	pw_log_debug(NAME" %p:", pw); | ||||
| 	if (pw->main_loop) | ||||
| 		pw_thread_loop_stop(pw->main_loop); | ||||
| 	if (pw->stream) | ||||
| 		pw_stream_destroy(pw->stream); | ||||
| 	if (pw->context) | ||||
| 		pw_context_destroy(pw->context); | ||||
| 	if (pw->fd >= 0) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Wim Taymans
						Wim Taymans