Skip to content

Commit

Permalink
shared/bap: Fix crash due to selecting ucast ops for bcast stream
Browse files Browse the repository at this point in the history
The stream ops is based on PAC type not the stream type.
  • Loading branch information
Vudentz committed Feb 8, 2024
1 parent 6dafe90 commit c185198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/bap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit c185198

Please sign in to comment.