mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-11 13:30:07 -05:00
pass the global type as an id instead of string
This commit is contained in:
parent
d1655196c3
commit
f7e9e0c33a
9 changed files with 41 additions and 40 deletions
|
|
@ -319,7 +319,7 @@ static const struct pw_node_events node_events = {
|
|||
&node_event_info
|
||||
};
|
||||
|
||||
static void registry_event_global(void *object, uint32_t id, const char *type, uint32_t version)
|
||||
static void registry_event_global(void *object, uint32_t id, uint32_t type, uint32_t version)
|
||||
{
|
||||
struct pw_proxy *registry = object;
|
||||
GstPipeWireDeviceProvider *self = registry->object;
|
||||
|
|
@ -327,7 +327,7 @@ static void registry_event_global(void *object, uint32_t id, const char *type, u
|
|||
struct pw_core *core = remote->core;
|
||||
struct pw_proxy *proxy = NULL;
|
||||
|
||||
if (strcmp(type, PIPEWIRE_TYPE__Node))
|
||||
if (type != core->type.node)
|
||||
return;
|
||||
|
||||
proxy = pw_proxy_new(remote, SPA_ID_INVALID, core->type.node, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue