1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

release frame after disabling convert rgb

This commit is contained in:
Josh Veitch-Michaelis
2019-03-12 05:26:51 +00:00
parent f3074fd559
commit 2143f7cee1
+4 -2
View File
@@ -1803,9 +1803,11 @@ bool CvCaptureCAM_V4L::setProperty( int property_id, double _value )
if (bool(value)) {
convert_rgb = convertableToRgb();
return convert_rgb;
}else{
convert_rgb = false;
releaseFrame();
return true;
}
convert_rgb = false;
return true;
case cv::CAP_PROP_FOURCC:
{
if (palette == static_cast<__u32>(value))