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: user controls did not obey the update flag.
Author:  Hans Verkuil <hverk...@xs4all.nl>
Date:    Sun Apr 4 12:45:02 2010 +0200

The GUI now refreshes user controls correctly if they set the
flag V4L2_CTRL_FLAG_UPDATE.

Signed-off-by: Hans Verkuil <hverk...@xs4all.nl>

 utils/qv4l2/ctrl-tab.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

---

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

diff --git a/utils/qv4l2/ctrl-tab.cpp b/utils/qv4l2/ctrl-tab.cpp
index ee475ce..1165d85 100644
--- a/utils/qv4l2/ctrl-tab.cpp
+++ b/utils/qv4l2/ctrl-tab.cpp
@@ -468,6 +468,8 @@ void ApplicationWindow::updateCtrl(unsigned id)
                if (ioctl(VIDIOC_S_CTRL, &c)) {
                        errorCtrl(id, errno, c.value);
                }
+               else if (m_ctrlMap[id].flags & V4L2_CTRL_FLAG_UPDATE)
+                       refresh(ctrl_class);
                return;
        }
        struct v4l2_ext_control c;
@@ -518,6 +520,8 @@ void ApplicationWindow::refresh(unsigned ctrl_class)
                                errorCtrl(id, errno);
                        }
                        setVal(id, c.value);
+                       queryctrl(m_ctrlMap[id]);
+                       m_widgetMap[id]->setDisabled(m_ctrlMap[id].flags & 
CTRL_FLAG_DISABLED);
                }
                return;
        }

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

Reply via email to