mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-14 06:59:57 -05:00
Add logger
Add logger interface Make it possible to pass extra interfaces to the element at init time, such as a logger.
This commit is contained in:
parent
e90c53e48d
commit
49dae17dfb
26 changed files with 251 additions and 47 deletions
|
|
@ -88,7 +88,7 @@ make_handle (SpaHandle **handle, const char *lib, const char *name, const SpaDic
|
|||
continue;
|
||||
|
||||
*handle = g_malloc0 (factory->size);
|
||||
if ((res = spa_handle_factory_init (factory, *handle, info)) < 0) {
|
||||
if ((res = spa_handle_factory_init (factory, *handle, info, NULL, 0)) < 0) {
|
||||
g_error ("can't make factory instance: %d", res);
|
||||
return res;
|
||||
}
|
||||
|
|
@ -110,7 +110,7 @@ add_item (PinosSpaV4l2Monitor *this, SpaMonitorItem *item)
|
|||
g_debug ("v4l2-monitor %p: add: \"%s\" (%s)", this, item->name, item->id);
|
||||
|
||||
handle = calloc (1, item->factory->size);
|
||||
if ((res = spa_handle_factory_init (item->factory, handle, item->info)) < 0) {
|
||||
if ((res = spa_handle_factory_init (item->factory, handle, item->info, NULL, 0)) < 0) {
|
||||
g_error ("can't make factory instance: %d", res);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue