diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-07-30 09:34:05 +0200 |
---|---|---|
committer | Hans Verkuil <hans.verkuil@cisco.com> | 2014-07-30 09:34:05 +0200 |
commit | 7427488abd417c140348ae432898260e2147d5ec (patch) | |
tree | 6b3e9a0c05708b01bdea2623b8b8d4274a5b672f | |
parent | 10213c975afdfcc90aa7de39e66c40cd7e8a57f7 (diff) |
qv4l2: zero m_tpgLimRGBRange when the device is closed
The m_tpgLimRGBRange pointer was non-NULL when it shouldn't
be. Set it to NULL when the device is closed, that's the correct
place since after that it is invalid until a new device is opened.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
-rw-r--r-- | utils/qv4l2/qv4l2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/qv4l2/qv4l2.cpp b/utils/qv4l2/qv4l2.cpp index 86dcc6a9..ec4edc9e 100644 --- a/utils/qv4l2/qv4l2.cpp +++ b/utils/qv4l2/qv4l2.cpp @@ -270,7 +270,6 @@ void ApplicationWindow::setDevice(const QString &device, bool rawOpen) connect(m_genTab, SIGNAL(clearBuffers()), this, SLOT(clearBuffers())); m_tabs->addTab(w, "General Settings"); - m_tpgLimRGBRange = NULL; if (has_vid_out()) { addTpgTab(m_minWidth); tpg_init(&m_tpg, 640, 360); @@ -1398,6 +1397,7 @@ void ApplicationWindow::closeDevice() m_widgetMap.clear(); m_sliderMap.clear(); m_classMap.clear(); + m_tpgLimRGBRange = NULL; } bool SaveDialog::setBuffer(unsigned char *buf, unsigned size) |