[pulseaudio-tickets] [Bug 58885] New: [cleanup] pa_bluetooth_device.device_info_valid is a bit broken

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Dec 30 04:23:21 PST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=58885

          Priority: medium
            Bug ID: 58885
                CC: lennart at poettering.net
          Assignee: pulseaudio-bugs at lists.freedesktop.org
           Summary: [cleanup] pa_bluetooth_device.device_info_valid is a
                    bit broken
        QA Contact: pulseaudio-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: tanuk at iki.fi
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: modules
           Product: PulseAudio

The pa_bluetooth_device.device_info_valid is supposed to tell whether we have
received the device properties properly from bluetoothd. Currently "properly"
means that the device name and address have been received. I think the
definition of "properly" should be more strict: we should fail if not *all*
interesting properties have been received. It is a bug in bluetoothd if it
doesn't send all non-optional properties, so it would be appropriate to fail in
case we detect bugs instead of pretending that everything is ok. For example,
if the UUID list of a device is not sent, pulseaudio acts as if the list is
empty, while in reality it's unknown. Pulseaudio should complain loudly if it
doesn't receive the UUID list, because it makes the device unusable.

What should the set of "interesting" properties be? I'd say any properties that
pulseaudio uses. This should be the same set of properties that pulseaudio
parses, but currently pulseaudio parses more properties than it uses (at least
the alias property is not being used for anything).

So, the necessary changes are to check that every non-optional interesting
property is received, and to remove the parsing of properties that aren't
actually used.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20121230/fd6a0f8a/attachment.html>


More information about the pulseaudio-bugs mailing list