mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	spa: alsa: react to "new" udev action as well
Previously, only "change" and "remove" were considered.
This commit is contained in:
		
							parent
							
								
									ad975c93ee
								
							
						
					
					
						commit
						84699032be
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -900,7 +900,7 @@ static void impl_on_fd_events(struct spa_source *source)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	start_inotify(this);
 | 
						start_inotify(this);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (spa_streq(action, "change")) {
 | 
						if (spa_streq(action, "add") || spa_streq(action, "change")) {
 | 
				
			||||||
		process_udev_device(this, ACTION_CHANGE, udev_device);
 | 
							process_udev_device(this, ACTION_CHANGE, udev_device);
 | 
				
			||||||
	} else if (spa_streq(action, "remove")) {
 | 
						} else if (spa_streq(action, "remove")) {
 | 
				
			||||||
		process_udev_device(this, ACTION_REMOVE, udev_device);
 | 
							process_udev_device(this, ACTION_REMOVE, udev_device);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue