mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	spa: libcamera: remove main loop from manager
The libcamera manager does not actually use the event loop that it acquires during initialization. Remove it.
This commit is contained in:
		
							parent
							
								
									13208220d8
								
							
						
					
					
						commit
						f699fa698e
					
				
					 1 changed files with 0 additions and 6 deletions
				
			
		| 
						 | 
					@ -71,7 +71,6 @@ typedef struct impl {
 | 
				
			||||||
	struct spa_device device;
 | 
						struct spa_device device;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct spa_log *log;
 | 
						struct spa_log *log;
 | 
				
			||||||
	struct spa_loop *main_loop;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct spa_hook_list hooks;
 | 
						struct spa_hook_list hooks;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -362,11 +361,6 @@ impl_init(const struct spa_handle_factory *factory,
 | 
				
			||||||
	impl->log = (struct spa_log*)spa_support_find(support, n_support, SPA_TYPE_INTERFACE_Log);
 | 
						impl->log = (struct spa_log*)spa_support_find(support, n_support, SPA_TYPE_INTERFACE_Log);
 | 
				
			||||||
	libcamera_log_topic_init(impl->log);
 | 
						libcamera_log_topic_init(impl->log);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	impl->main_loop = (struct spa_loop*)spa_support_find(support, n_support, SPA_TYPE_INTERFACE_Loop);
 | 
					 | 
				
			||||||
	if (impl->main_loop == NULL) {
 | 
					 | 
				
			||||||
		spa_log_error(impl->log, "a main-loop is needed");
 | 
					 | 
				
			||||||
		return -EINVAL;
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	spa_hook_list_init(&impl->hooks);
 | 
						spa_hook_list_init(&impl->hooks);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	impl->device.iface = SPA_INTERFACE_INIT(
 | 
						impl->device.iface = SPA_INTERFACE_INIT(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue