diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2024-02-08 14:07:59 -0500 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2024-02-08 14:07:59 -0500 |
commit | c1851987ca2c6e41d1e0e166e959b754e369c254 (patch) | |
tree | 23eb69af3aa0067d44909514e3e5916a651171e4 | |
parent | 6dafe901a2bae49048968872e0854cc47cfec45b (diff) |
shared/bap: Fix crash due to selecting ucast ops for bcast stream
The stream ops is based on PAC type not the stream type.
-rw-r--r-- | src/shared/bap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/bap.c b/src/shared/bap.c index 804352db9c..e26dbf9440 100644 --- a/src/shared/bap.c +++ b/src/shared/bap.c @@ -2062,7 +2062,7 @@ static const struct bt_bap_stream_ops * bap_stream_new_ops(struct bt_bap_stream *stream) { const struct bt_bap_stream_ops *ops; - uint8_t type = bt_bap_stream_get_type(stream); + uint8_t type = bt_bap_pac_get_type(stream->lpac); size_t i; for (i = 0; i < ARRAY_SIZE(stream_ops); i++) { |