mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
bluetooth: update device's valid flag after parsing properties
The properties_received flag affects whether the device should be considered valid, so let's update the valid flag after setting the properties_received flag. There's a call to device_update_valid() anyway later when setting the device adapters, so this change isn't strictly necessary, but this makes it more obvious that the code is correct (and less fragile).
This commit is contained in:
parent
eec4d29247
commit
570288ccc9
1 changed files with 1 additions and 0 deletions
|
|
@ -773,6 +773,7 @@ static void parse_device_properties(pa_bluetooth_device *d, DBusMessageIter *i)
|
|||
|
||||
if (!d->properties_received) {
|
||||
d->properties_received = true;
|
||||
device_update_valid(d);
|
||||
|
||||
if (!d->address || !d->adapter_path || !d->alias)
|
||||
pa_log_error("Non-optional information missing for device %s", d->path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue