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

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

commit 3d13b896a4326361757091bb5d3b7341a4324bcd
Author: zhushiqshi <[email protected]>
AuthorDate: Thu Mar 20 16:48:12 2025 +0800

    nxcodec: reduce nxcodec redundant log output for dec
    
    Drop the duplicate decode log so one message describes each decoded buffer.
    
    Signed-off-by: zhushiqshi <[email protected]>
---
 system/nxcodec/nxcodec_context.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/system/nxcodec/nxcodec_context.c b/system/nxcodec/nxcodec_context.c
index 025627d36..77f3c09fc 100644
--- a/system/nxcodec/nxcodec_context.c
+++ b/system/nxcodec/nxcodec_context.c
@@ -69,9 +69,13 @@ nxcodec_context_dequeue_buf(FAR nxcodec_context_t *ctx)
   ret = ioctl(codec->fd, VIDIOC_DQBUF, &buf);
   if (ret < 0)
     {
-      printf("nxcodec %s VIDIOC_DQBUF - %s\n",
-             V4L2_TYPE_IS_OUTPUT(ctx->type) ? "output" : "capture",
-             strerror(errno));
+      if (errno != EAGAIN)
+        {
+          printf("nxcodec %s VIDIOC_DQBUF - %s\n",
+                 V4L2_TYPE_IS_OUTPUT(ctx->type) ? "output" : "capture",
+                 strerror(errno));
+        }
+
       return NULL;
     }
 

Reply via email to