This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: libdvbv5/dvb-scan: always requeue after dvb_parse_section
Author:  Hans Verkuil <[email protected]>
Date:    Wed Jun 4 10:38:35 2025 +0200

Even if dvb_parse_section returns non-zero, you still need to requeue the 
buffer.
Otherwise it will effectively be lost.

Signed-off-by: Hans Verkuil <[email protected]>
Acked-by: Mauro Carvalho Chehab <[email protected]>

 lib/libdvbv5/dvb-scan.c | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=27e1fd174a7f742f898b176e6e60665583cee41c
diff --git a/lib/libdvbv5/dvb-scan.c b/lib/libdvbv5/dvb-scan.c
index 3f52d14045c2..afe3a4f02bb6 100644
--- a/lib/libdvbv5/dvb-scan.c
+++ b/lib/libdvbv5/dvb-scan.c
@@ -412,14 +412,12 @@ int dvb_read_sections(struct dvb_v5_fe_parms *__p, int 
dmx_fd,
                ret = dvb_parse_section(parms, sect, buf, buf_length);
 
                if (parms->p.stream_ctx) {
-                       /**enqueue the buffer again*/
-                       if (!ret) {
-                               if (dvb_v5_stream_qbuf(parms->p.stream_ctx, 
b.index) < 0) {
-                                       parms->p.stream_ctx->error = 1;
-                                       break;
-                               } else {
-                                       parms->p.stream_ctx->buf_flag[b.index] 
= 1;
-                               }
+                       /* enqueue the buffer again */
+                       if (dvb_v5_stream_qbuf(parms->p.stream_ctx, b.index) < 
0) {
+                               parms->p.stream_ctx->error = 1;
+                               break;
+                       } else {
+                               parms->p.stream_ctx->buf_flag[b.index] = 1;
                        }
                }
        } while (!ret);
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to