From f699fa698e485fcd87642ef64e67472bf9021a52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Sat, 3 Sep 2022 19:30:40 +0200 Subject: [PATCH] spa: libcamera: remove main loop from manager The libcamera manager does not actually use the event loop that it acquires during initialization. Remove it. --- spa/plugins/libcamera/libcamera-manager.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/spa/plugins/libcamera/libcamera-manager.cpp b/spa/plugins/libcamera/libcamera-manager.cpp index c43e62156..84efc1456 100644 --- a/spa/plugins/libcamera/libcamera-manager.cpp +++ b/spa/plugins/libcamera/libcamera-manager.cpp @@ -71,7 +71,6 @@ typedef struct impl { struct spa_device device; struct spa_log *log; - struct spa_loop *main_loop; 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); 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); impl->device.iface = SPA_INTERFACE_INIT(