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

xiaoxiang 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 03c3b2e  system: nxplayer: Fix a compile error if 
CONFIG_DEBUG_AUDIO_ERROR=y
03c3b2e is described below

commit 03c3b2ed0f48529d91e34ad95c8f5e2c18e283ad
Author: Masayuki Ishikawa <[email protected]>
AuthorDate: Wed Sep 16 10:41:59 2020 +0900

    system: nxplayer: Fix a compile error if CONFIG_DEBUG_AUDIO_ERROR=y
    
    Summary:
    - This commit fixes a compile error
    
    Impact:
    - Affects nxplayer with CONFIG_DEBUG_AUDIO_ERROR=y
    
    Testing:
    - Tested with spresense:rndis
    
    Signed-off-by: Masayuki Ishikawa <[email protected]>
---
 system/nxplayer/nxplayer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/system/nxplayer/nxplayer.c b/system/nxplayer/nxplayer.c
index deb9fe0..24b4660 100644
--- a/system/nxplayer/nxplayer.c
+++ b/system/nxplayer/nxplayer.c
@@ -669,7 +669,7 @@ static int nxplayer_readbuffer(FAR struct nxplayer_s 
*pplayer,
 
   if (apb->nbytes < apb->nmaxbytes)
     {
-#ifdef CONFIG_DEBUG_AUDIO_INFO
+#if defined (CONFIG_DEBUG_AUDIO_INFO) || defined (CONFIG_DEBUG_AUDIO_ERROR)
       int errcode = errno;
 
       audinfo("Closing audio file, nbytes=%d errcode=%d\n",

Reply via email to