mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-02-26 01:40:25 -05:00
bluetooth: Protect from a misbehaving bluetoothd
bluetoothd always send the GetManagedObjects() reply messages with the objects array argument following an in-depth order starting from the root. That means parents will always be known at the time their children objects are parsed, if clients parse the objects in the same order they appear in the array, as we do in PulseAudio. This commit tries to protect PulseAudio in the case bluetoothd changes that behavior for some reason. It hasn't been tested, since this situation never occurs.
This commit is contained in:
parent
89e97215c7
commit
82fd8cc845
2 changed files with 15 additions and 2 deletions
|
|
@ -80,6 +80,7 @@ struct pa_bluetooth_device {
|
|||
|
||||
/* Device information */
|
||||
char *path;
|
||||
char *adapter_path;
|
||||
char *alias;
|
||||
char *address;
|
||||
uint32_t class_of_device;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue