OSDN Git Service

media: Fix custom property registration for multiple adapters
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 21 Jan 2013 13:34:13 +0000 (15:34 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 28 Jan 2013 00:02:04 +0000 (18:02 -0600)
commit47bcbd6c5628890d8c75e2cf2633fe048e7569dd
treee156c918ef22fb2cc4e071ccfb2e9f8d6e656830
parentcd3f438989ca7eaf4c88d7827e1c94a0af2aa666
media: Fix custom property registration for multiple adapters

The function btd_profile_add_custom_prop register a custom property for
an UUID which is valid for every adapter so its user_data cannot be tied
to a single adapter.

To fix this now NULL is passed as user_data and the callbacks checks if
the adapter passed has been registered and if there is an endpoint for
the UUID requested.
profiles/audio/media.c