mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
bluetooth: mark info_valid when receive Connected
Sometime, we receive the connected signal before GetProperties reply.
This commit is contained in:
parent
af9f92bfaa
commit
f1daa282f0
1 changed files with 2 additions and 0 deletions
|
|
@ -653,10 +653,12 @@ static DBusHandlerResult filter_cb(DBusConnection *bus, DBusMessage *m, void *us
|
|||
} else if (dbus_message_has_interface(m, "org.bluez.Headset")) {
|
||||
if (parse_audio_property(y, &d->headset_connected, &arg_i) < 0)
|
||||
goto fail;
|
||||
d->headset_info_valid = 1;
|
||||
|
||||
} else if (dbus_message_has_interface(m, "org.bluez.AudioSink")) {
|
||||
if (parse_audio_property(y, &d->audio_sink_connected, &arg_i) < 0)
|
||||
goto fail;
|
||||
d->audio_sink_info_valid = 1;
|
||||
}
|
||||
|
||||
pa_assert_se(y->mode == MODE_DISCOVER);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue