Is it OK for PulseAudio to crash when BlueZ is buggy?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Tanu,

On Wed, May 23, 2012 at 4:11 PM, Tanu Kaskinen <tanu.kaskinen at digia.com> wrote:
> On Wed, 2012-05-23 at 12:20 +0300, Luiz Augusto von Dentz wrote:
>> Btw, are you sure this is a problem? We can have the same address in
>> different devices if they are paired with different adapters,
>> otherwise it is a bug and we should be able to fix it.
>
> Thanks for the information. I had the assumption[1] that the device
> addresses should be unique, but if they're not, the code that I've
> written is certainly broken.
>
> [1] I tried to verify my assumption first by asking on the #bluez irc
> channel, and after getting no responses, I checked the bluetoothd code
> and it seemed like the addresses would be guaranteed to be unique. The
> device objects were put in a map with the address as the key, so there
> could be no duplicates, but I guess I missed the fact that there are
> multiple of those maps, one for each adapter.

The object path is guaranteed to be unique if you need something as a
hash table key or something like that use it instead of the address,
but note that object path might change over time due to reboot or
bluetoothd being restarted, so you need to cleanup.

-- 
Luiz Augusto von Dentz


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux