shared/bap: Fix not detaching streams when PAC is removed
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 23 Jan 2023 21:06:07 +0000 (13:06 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 10:11:34 +0000 (15:41 +0530)
commit539ddcde4675992eb956277da0eb966654a360b6
tree120988216135d87c1168913d85031fe0622cab8f
parent607781d9ead03a10b0af3eaf8a9b026f40b5c4d3
shared/bap: Fix not detaching streams when PAC is removed

When local PAC is removed we attempt to release the streams but we left
it still attached to the endpoint, so this makes sure the stream is
properly detached by setting its state to idle.

Fixes: https://github.com/bluez/bluez/issues/457
src/shared/bap.c