Commit e1c7fb18 authored by Andreas Persson's avatar Andreas Persson

refuse to change pixel format when an acquisition is in progress

FlyCapture will give an error if you try, but sometimes the
acquisiton is stopped, leaving us in an invalid state.
parent 7ac7be71
......@@ -649,6 +649,9 @@ void Camera::setVideoMode(VideoMode mode)
// nothing to do
if (m_acq_started)
THROW_HW_ERROR(Error) << "Acquisition in progress";
m_image_settings.pixelFormat = new_format;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment