Commit 2143f7ce authored by Josh Veitch-Michaelis's avatar Josh Veitch-Michaelis

release frame after disabling convert rgb

parent f3074fd5
...@@ -1803,9 +1803,11 @@ bool CvCaptureCAM_V4L::setProperty( int property_id, double _value ) ...@@ -1803,9 +1803,11 @@ bool CvCaptureCAM_V4L::setProperty( int property_id, double _value )
if (bool(value)) { if (bool(value)) {
convert_rgb = convertableToRgb(); convert_rgb = convertableToRgb();
return convert_rgb; return convert_rgb;
} }else{
convert_rgb = false; convert_rgb = false;
releaseFrame();
return true; return true;
}
case cv::CAP_PROP_FOURCC: case cv::CAP_PROP_FOURCC:
{ {
if (palette == static_cast<__u32>(value)) if (palette == static_cast<__u32>(value))
......
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