You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by bt...@apache.org on 2020/06/11 01:15:42 UTC

[incubator-nuttx-apps] branch master updated: system: nxrecorder: Fix compile warnings in nxrecorder.c

This is an automated email from the ASF dual-hosted git repository.

btashton pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 1d4dc43  system: nxrecorder: Fix compile warnings in nxrecorder.c
1d4dc43 is described below

commit 1d4dc43e73b769e995312fa0629bc7bb99cce501
Author: Masayuki Ishikawa <ma...@gmail.com>
AuthorDate: Thu Jun 11 09:55:30 2020 +0900

    system: nxrecorder: Fix compile warnings in nxrecorder.c
    
    Signed-off-by: Masayuki Ishikawa <Ma...@jp.sony.com>
---
 system/nxrecorder/nxrecorder.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/system/nxrecorder/nxrecorder.c b/system/nxrecorder/nxrecorder.c
index 0464831..85297b1 100644
--- a/system/nxrecorder/nxrecorder.c
+++ b/system/nxrecorder/nxrecorder.c
@@ -216,7 +216,7 @@ static int nxrecorder_enqueuebuffer(FAR struct nxrecorder_s *precorder,
   bufdesc.session   = precorder->session;
 #endif
   bufdesc.numbytes  = apb->nbytes;
-  bufdesc.u.pbuffer = apb;
+  bufdesc.u.buffer = apb;
 
   ret = ioctl(precorder->dev_fd, AUDIOIOC_ENQUEUEBUFFER,
               (unsigned long)&bufdesc);
@@ -576,7 +576,7 @@ err_out:
 #ifdef CONFIG_AUDIO_MULTI_SESSION
               buf_desc.session = pplayer->session;
 #endif
-              buf_desc.u.pbuffer = pbuffers[x];
+              buf_desc.u.buffer = pbuffers[x];
               ioctl(precorder->dev_fd,
                     AUDIOIOC_FREEBUFFER,
                     (unsigned long) &buf_desc);