From d4236c888d2a229044145de034ec09d6af4f3859 Mon Sep 17 00:00:00 2001 From: starmaid Date: Wed, 15 Nov 2023 04:50:16 -0800 Subject: [PATCH] Moved OpenNI2 Stream mirroring to unsupported, added line to return OK to prevent scanning app crashes --- wrappers/openni2/src/Rs2StreamProps.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wrappers/openni2/src/Rs2StreamProps.cpp b/wrappers/openni2/src/Rs2StreamProps.cpp index 8d53ae3bf3..b790290517 100755 --- a/wrappers/openni2/src/Rs2StreamProps.cpp +++ b/wrappers/openni2/src/Rs2StreamProps.cpp @@ -108,6 +108,13 @@ OniStatus Rs2Stream::setProperty(int propertyId, const void* data, int dataSize) } break; } + + case ONI_STREAM_PROPERTY_MIRRORING: + { + // Doesn't do anything, but prevents certain 3D scanning applications from crashing. + return ONI_STATUS_OK; + break; + } default: { @@ -402,11 +409,11 @@ OniBool Rs2Stream::isPropertySupported(int propertyId) case ONI_STREAM_PROPERTY_MAX_VALUE: // int case ONI_STREAM_PROPERTY_MIN_VALUE: // int case ONI_STREAM_PROPERTY_STRIDE: // int - case ONI_STREAM_PROPERTY_MIRRORING: // OniBool return true; case ONI_STREAM_PROPERTY_NUMBER_OF_FRAMES: // int + case ONI_STREAM_PROPERTY_MIRRORING: // OniBool return false; case ONI_STREAM_PROPERTY_AUTO_WHITE_BALANCE: // OniBool