mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	spa: libcamera: print camera id when it appears/disappears
This commit is contained in:
		
							parent
							
								
									086de7dcac
								
							
						
					
					
						commit
						13208220d8
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -190,7 +190,7 @@ void Impl::addCamera(std::shared_ptr<Camera> camera)
 | 
				
			||||||
	struct impl *impl = this;
 | 
						struct impl *impl = this;
 | 
				
			||||||
	struct device *device;
 | 
						struct device *device;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	spa_log_info(impl->log, "new camera");
 | 
						spa_log_info(impl->log, "new camera: %s", camera->id().c_str());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if ((device = find_device(impl, camera.get())) != NULL)
 | 
						if ((device = find_device(impl, camera.get())) != NULL)
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
| 
						 | 
					@ -206,7 +206,7 @@ void Impl::removeCamera(std::shared_ptr<Camera> camera)
 | 
				
			||||||
	struct impl *impl = this;
 | 
						struct impl *impl = this;
 | 
				
			||||||
	struct device *device;
 | 
						struct device *device;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	spa_log_info(impl->log, "camera removed");
 | 
						spa_log_info(impl->log, "camera removed: %s", camera->id().c_str());
 | 
				
			||||||
	if ((device = find_device(impl, camera.get())) == NULL)
 | 
						if ((device = find_device(impl, camera.get())) == NULL)
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue