mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
bluetooth: Check if BlueZ tries to set the configuration twice for the same transport.
This commit is contained in:
parent
ebdb18bca4
commit
0a8068d28e
1 changed files with 7 additions and 1 deletions
|
|
@ -1113,6 +1113,12 @@ static DBusMessage *endpoint_set_configuration(DBusConnection *conn, DBusMessage
|
||||||
dbus_message_iter_init(m, &args);
|
dbus_message_iter_init(m, &args);
|
||||||
|
|
||||||
dbus_message_iter_get_basic(&args, &path);
|
dbus_message_iter_get_basic(&args, &path);
|
||||||
|
|
||||||
|
if (pa_hashmap_get(y->transports, path)) {
|
||||||
|
pa_log("org.bluez.MediaEndpoint.SetConfiguration: Transport %s is already configured.", path);
|
||||||
|
goto fail;
|
||||||
|
}
|
||||||
|
|
||||||
if (!dbus_message_iter_next(&args))
|
if (!dbus_message_iter_next(&args))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
|
|
@ -1183,7 +1189,7 @@ static DBusMessage *endpoint_set_configuration(DBusConnection *conn, DBusMessage
|
||||||
t->nrec = nrec;
|
t->nrec = nrec;
|
||||||
|
|
||||||
d->transports[p] = t;
|
d->transports[p] = t;
|
||||||
pa_hashmap_put(y->transports, t->path, t);
|
pa_assert_se(pa_hashmap_put(y->transports, t->path, t) >= 0);
|
||||||
|
|
||||||
pa_log_debug("Transport %s profile %d available", t->path, t->profile);
|
pa_log_debug("Transport %s profile %d available", t->path, t->profile);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue