When the frame width and height fields are disabled because we start
streaming, the editingFinished event is triggered as well, which
causes an attempt to change the format. This causes EBUSY warnings
because it really isn't allowed to do that anymore. Check if the
field is really enabled before we change the format, thus squashing
the warnings.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
v4l2_format fmt;
int val = m_frameWidth->value();
+ if (!m_frameWidth->isEnabled())
+ return;
g_fmt_cap(fmt);
fmt.fmt.pix.width = val;
if (try_fmt(fmt))
v4l2_format fmt;
int val = m_frameHeight->value();
+ if (!m_frameHeight->isEnabled())
+ return;
g_fmt_cap(fmt);
fmt.fmt.pix.height = val;
if (try_fmt(fmt))