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

Subject: qv4l2: ignore buffers with flag V4L2_BUF_FLAG_ERROR.
Author:  Hans Verkuil <hans.verk...@cisco.com>
Date:    Tue Feb 25 20:13:12 2014 +0100

Such buffers should just be requeued.

Signed-off-by: Hans Verkuil <hans.verk...@cisco.com>

 utils/qv4l2/qv4l2.cpp |   28 +++++++++++++++++++++++++---
 1 files changed, 25 insertions(+), 3 deletions(-)

---

http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=84c8d337f0ad6a43bdde5965c6337434e0b7c213

diff --git a/utils/qv4l2/qv4l2.cpp b/utils/qv4l2/qv4l2.cpp
index 0ace458..86a3e6d 100644
--- a/utils/qv4l2/qv4l2.cpp
+++ b/utils/qv4l2/qv4l2.cpp
@@ -396,6 +396,10 @@ void ApplicationWindow::capVbiFrame()
                }
                if (again)
                        return;
+               if (buf.flags & V4L2_BUF_FLAG_ERROR) {
+                       qbuf(buf);
+                       return;
+               }
                data = (__u8 *)m_buffers[buf.index].start;
                s = buf.bytesused;
                break;
@@ -408,6 +412,10 @@ void ApplicationWindow::capVbiFrame()
                }
                if (again)
                        return;
+               if (buf.flags & V4L2_BUF_FLAG_ERROR) {
+                       qbuf(buf);
+                       return;
+               }
                data = (__u8 *)buf.m.userptr;
                s = buf.bytesused;
                break;
@@ -522,11 +530,17 @@ void ApplicationWindow::capFrame()
                        m_capStartAct->setChecked(false);
                        return;
                }
+
+               if (again)
+                       return;
+               if (buf.flags & V4L2_BUF_FLAG_ERROR) {
+                       qbuf(buf);
+                       return;
+               }
+
 #ifdef HAVE_ALSA
                alsa_thread_timestamp(&tv_alsa);
 #endif
-               if (again)
-                       return;
 
                if (showFrames()) {
                        if (m_mustConvert)
@@ -551,11 +565,19 @@ void ApplicationWindow::capFrame()
                        m_capStartAct->setChecked(false);
                        return;
                }
+               if (again)
+                       return;
+               if (buf.flags & V4L2_BUF_FLAG_ERROR) {
+                       qbuf(buf);
+                       return;
+               }
 #ifdef HAVE_ALSA
                alsa_thread_timestamp(&tv_alsa);
 #endif
-               if (again)
+               if (buf.flags & V4L2_BUF_FLAG_ERROR) {
+                       qbuf(buf);
                        return;
+               }
 
                if (showFrames()) {
                        if (m_mustConvert)

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to