mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	raop: Use pa_module_unload_request_by_index as per module-zeroconf-discover
This commit is contained in:
		
							parent
							
								
									13112f6a76
								
							
						
					
					
						commit
						36714ea55a
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -265,7 +265,7 @@ static void browser_cb(
 | 
				
			||||||
        struct tunnel *t2;
 | 
					        struct tunnel *t2;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if ((t2 = pa_hashmap_get(u->tunnels, t))) {
 | 
					        if ((t2 = pa_hashmap_get(u->tunnels, t))) {
 | 
				
			||||||
            pa_module_unload_by_index(u->core, t2->module_index, TRUE);
 | 
					            pa_module_unload_request_by_index(u->core, t2->module_index, TRUE);
 | 
				
			||||||
            pa_hashmap_remove(u->tunnels, t2);
 | 
					            pa_hashmap_remove(u->tunnels, t2);
 | 
				
			||||||
            tunnel_free(t2);
 | 
					            tunnel_free(t2);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					@ -386,7 +386,7 @@ void pa__done(pa_module*m) {
 | 
				
			||||||
        struct tunnel *t;
 | 
					        struct tunnel *t;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        while ((t = pa_hashmap_steal_first(u->tunnels))) {
 | 
					        while ((t = pa_hashmap_steal_first(u->tunnels))) {
 | 
				
			||||||
            pa_module_unload_by_index(u->core, t->module_index, TRUE);
 | 
					            pa_module_unload_request_by_index(u->core, t->module_index, TRUE);
 | 
				
			||||||
            tunnel_free(t);
 | 
					            tunnel_free(t);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue