mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	libcamera: emit device removal event
We need to emit the device id with NULL info to emit a device remove event. Also indent some code properly.
This commit is contained in:
		
							parent
							
								
									4da154c3a9
								
							
						
					
					
						commit
						a57590e334
					
				
					 2 changed files with 6 additions and 5 deletions
				
			
		| 
						 | 
					@ -208,6 +208,7 @@ static void try_remove_camera(struct impl *impl, const Camera *camera)
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	spa_log_info(impl->log, "camera removed: %s", device->camera->id().c_str());
 | 
						spa_log_info(impl->log, "camera removed: %s", device->camera->id().c_str());
 | 
				
			||||||
 | 
						spa_device_emit_object_info(&impl->hooks, device->id, NULL);
 | 
				
			||||||
	remove_device(impl, device);
 | 
						remove_device(impl, device);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue