mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 21:20:18 +08:00
more const correctness in OpenNI2 getProperty
This commit is contained in:
parent
b7a3204c57
commit
2d16026df6
@ -466,7 +466,7 @@ double CvCapture_OpenNI2::getCommonProperty( int propIdx ) const
|
||||
propValue = getDepthGeneratorProperty( propIdx );
|
||||
break;
|
||||
case CV_CAP_PROP_OPENNI2_SYNC :
|
||||
propValue = device.getDepthColorSyncEnabled();
|
||||
propValue = const_cast<CvCapture_OpenNI2 *>(this)->device.getDepthColorSyncEnabled();
|
||||
case CV_CAP_PROP_OPENNI2_MIRROR:
|
||||
{
|
||||
bool isMirroring = color.getMirroringEnabled() && depth.getMirroringEnabled();
|
||||
|
Loading…
Reference in New Issue
Block a user