From 79d01ea8ffb82370f223e6f4f3805a04103d7aa3 Mon Sep 17 00:00:00 2001 From: Noha Yassin <37175819+nohayassin@users.noreply.github.com> Date: Mon, 10 May 2021 09:51:57 +0300 Subject: [PATCH] benchmark fixes --- tools/benchmark/rs-benchmark.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tools/benchmark/rs-benchmark.cpp b/tools/benchmark/rs-benchmark.cpp index 80c0f945eb..b8bf43548b 100644 --- a/tools/benchmark/rs-benchmark.cpp +++ b/tools/benchmark/rs-benchmark.cpp @@ -208,18 +208,14 @@ class gl_blocks : public suite int main(int argc, char** argv) try { std::string serial; - enum second_stream { - rgb_stream, - ir_stream - }; - second_stream second_stream; + rs2_stream second_stream; if (!device_with_streams({ RS2_STREAM_DEPTH }, serial)) return EXIT_SUCCESS; if (device_with_streams({ RS2_STREAM_COLOR }, serial)) - second_stream = rgb_stream; + second_stream = RS2_STREAM_COLOR; else if (device_with_streams({ RS2_STREAM_INFRARED }, serial)) - second_stream = ir_stream; + second_stream = RS2_STREAM_INFRARED; else { std::cout<< " Connect a Depth Camera that supports either RGB or Infrared streams." <