Commit: 4a06a31be0453d7c8208108dccbb7cfacf768bc4
Parent: d204e84c0694700f6cb1b8d98d26492de63d4303
Author: Frédéric Danis <frederic.danis@collabora.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2022-03-30 22:54:54
Tree: 657d643a3e91f30052c37489e1aefc0f0592dff9

a2dp: Fix crash when SEP codec has not been initialized If SEP has not been properly discovered avdtp_get_codec may return NULL thus causing crashes such as when running AVRCP/TG/VLH/BI-01-C after AVRCP/TG/RCR/BV-04-C. Prevent remote endpoint registration if its codec is not available. Remove queue_isempty check from store_remote_seps since that prevents cleaning up if no seps could be registered.

Diffstat

M profiles/audio/a2dp.c | 22 +++++++++++++++++- - - - -

1 files changed, 17 insertions(+), 5 deletions(-)

View Full Diff | Patch