mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
system/nxlooper: Initialize audio_caps_s to 0
This avoids unspecified values to be passed to the lower interfaces of the audio subsystem.
This commit is contained in:
parent
17a497492a
commit
9a68248f29
1 changed files with 1 additions and 0 deletions
|
|
@ -1053,6 +1053,7 @@ int nxlooper_loopback(FAR struct nxlooper_s *plooper, int format,
|
|||
goto err_out_record;
|
||||
}
|
||||
|
||||
memset(&caps, 0, sizeof(struct audio_caps_s));
|
||||
caps.ac_len = sizeof(caps);
|
||||
caps.ac_type = AUDIO_TYPE_INPUT;
|
||||
caps.ac_subtype = AUDIO_TYPE_QUERY;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue