mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -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")) {
|
} else if (dbus_message_has_interface(m, "org.bluez.Headset")) {
|
||||||
if (parse_audio_property(y, &d->headset_connected, &arg_i) < 0)
|
if (parse_audio_property(y, &d->headset_connected, &arg_i) < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
d->headset_info_valid = 1;
|
||||||
|
|
||||||
} else if (dbus_message_has_interface(m, "org.bluez.AudioSink")) {
|
} else if (dbus_message_has_interface(m, "org.bluez.AudioSink")) {
|
||||||
if (parse_audio_property(y, &d->audio_sink_connected, &arg_i) < 0)
|
if (parse_audio_property(y, &d->audio_sink_connected, &arg_i) < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
d->audio_sink_info_valid = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
pa_assert_se(y->mode == MODE_DISCOVER);
|
pa_assert_se(y->mode == MODE_DISCOVER);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue