mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
spa: v4l2: Add missing v4l2_log_topic_init() call to device/udev impl_init()
Wireplumber creates SPA objects of the "api.v4l2.enum.udev" type without ever creating any "api.v4l2.source" objects. This was causing the v4l2_log_topic variable to never get initialized, causing spa_log_xxx() calls in v4l2-udev.c to not work. Call v4l2_log_topic_init() from v4l2-udev's impl_init() to fix this. v4l2-device's impl_init() is also missing a call to v4l2_log_topic_init(), add this as well. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
f7110fbc77
commit
e48a1595a6
2 changed files with 3 additions and 0 deletions
|
|
@ -231,6 +231,7 @@ impl_init(const struct spa_handle_factory *factory,
|
|||
handle->clear = impl_clear, this = (struct impl *) handle;
|
||||
|
||||
this->log = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_Log);
|
||||
v4l2_log_topic_init(this->log);
|
||||
|
||||
spa_hook_list_init(&this->hooks);
|
||||
|
||||
|
|
|
|||
|
|
@ -695,6 +695,8 @@ impl_init(const struct spa_handle_factory *factory,
|
|||
this->notify.fd = -1;
|
||||
|
||||
this->log = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_Log);
|
||||
v4l2_log_topic_init(this->log);
|
||||
|
||||
this->main_loop = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_Loop);
|
||||
|
||||
if (this->main_loop == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue