Commit ea9a17eb authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #14036 from jveitchmichaelis:Y16_v4l_fix

parents 61eb1a68 2143f7ce
...@@ -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;
releaseFrame();
return true;
} }
convert_rgb = false;
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