Skip to content

Commit

Permalink
audio: Fix caps initialization in pcm_enqueuebuffer()
Browse files Browse the repository at this point in the history
Summary:
- I noticed that caps is not correctly initialized.
- This commit fixes this issue.

Impact:
- None

Testing:
- Tested with spresense:wifi_smp + nxplayer

Signed-off-by: Masayuki Ishikawa <[email protected]>
  • Loading branch information
masayuki2009 authored and jerpelea committed Sep 26, 2024
1 parent d9b95c5 commit 44e8772
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions audio/pcm_decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1092,6 +1092,7 @@ static int pcm_enqueuebuffer(FAR struct audio_lowerhalf_s *dev,
if (headersize > 0)
{
struct audio_caps_s caps;
memset(&caps, 0, sizeof(caps));

/* Configure the lower level for the number of channels, bitrate,
* and sample bitwidth.
Expand Down

0 comments on commit 44e8772

Please sign in to comment.