mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
jack: fix names of our ports
Write our port name into the port.name See #796 See #780 See #569
This commit is contained in:
parent
9e09461113
commit
e340a44a35
1 changed files with 3 additions and 4 deletions
|
|
@ -2171,7 +2171,6 @@ static void registry_event_global(void *data, uint32_t id,
|
||||||
unsigned long flags = 0;
|
unsigned long flags = 0;
|
||||||
jack_port_type_id_t type_id;
|
jack_port_type_id_t type_id;
|
||||||
uint32_t node_id;
|
uint32_t node_id;
|
||||||
char full_name[1024];
|
|
||||||
bool is_monitor = false;
|
bool is_monitor = false;
|
||||||
char tmp[REAL_JACK_PORT_NAME_SIZE+1];
|
char tmp[REAL_JACK_PORT_NAME_SIZE+1];
|
||||||
|
|
||||||
|
|
@ -2219,10 +2218,10 @@ static void registry_event_global(void *data, uint32_t id,
|
||||||
|
|
||||||
o = NULL;
|
o = NULL;
|
||||||
if (node_id == c->node_id) {
|
if (node_id == c->node_id) {
|
||||||
snprintf(full_name, sizeof(full_name), "%s:%s", c->name, str);
|
snprintf(tmp, sizeof(tmp), "%s:%s", c->name, str);
|
||||||
o = find_port(c, full_name);
|
o = find_port(c, tmp);
|
||||||
if (o != NULL)
|
if (o != NULL)
|
||||||
pw_log_debug(NAME" %p: %s found our port %p", c, full_name, o);
|
pw_log_debug(NAME" %p: %s found our port %p", c, tmp, o);
|
||||||
}
|
}
|
||||||
if (o == NULL) {
|
if (o == NULL) {
|
||||||
o = alloc_object(c);
|
o = alloc_object(c);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue