Bluetooth: Audio: Remove const for bt_audio_stream_reconfig codec
The codec is assigned to the stream. However since the metadata, which is stored in the codec, may be modified by other means, the stored pointer cannot be const, and thus the codec argument to bt_audio_stream_reconfig cannot be const either. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
18a889fb8b
commit
302ec9fa37
2 changed files with 3 additions and 3 deletions
|
@ -1103,7 +1103,7 @@ int bt_audio_unicast_group_delete(struct bt_audio_unicast_group *unicast_group)
|
|||
#endif /* CONFIG_BT_AUDIO_UNICAST_CLIENT */
|
||||
|
||||
int bt_audio_stream_reconfig(struct bt_audio_stream *stream,
|
||||
const struct bt_codec *codec)
|
||||
struct bt_codec *codec)
|
||||
{
|
||||
uint8_t state;
|
||||
uint8_t role;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue