Commit: 8f280aadbbae9417a5bf6fabaf190b699336080c
Parent: 4d3c721ee037bcc9553bc2e6a8b7fe0bebb3b50c
Author: Iulia Tanasescu <iulia.tanasescu@nxp.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2025-03-11 17:32:42
Tree: 4e62e8c458598d5e8d07e1a43b02fd78ab32003f

shared/bap: Make bap_get_session public This makes bap_get_session public, so that a reference to the bap session can be obtained and processed from the BASS plugin, for the Broadcast Assistant implementation. In case a session is not found, this commit also adds a NULL check for the new bap that is created, in case the provided db reference is NULL and therefore a session fails to be added, to avoid any invalid memory access.

Diffstat

M src/shared/bap.c | 9 ++++++- - -
M src/shared/bap.h | 2 ++

2 files changed, 8 insertions(+), 3 deletions(-)

View Full Diff | Patch