From cb150d54fc4a104291b4a5e42bbc5d1c43227233 Mon Sep 17 00:00:00 2001 From: doronhi Date: Tue, 13 Aug 2019 15:40:36 +0300 Subject: [PATCH] as the default value of stream_index is -1, so its range should include -1. --- src/proc/synthetic-stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proc/synthetic-stream.cpp b/src/proc/synthetic-stream.cpp index 90c80c03b7..71b98fe3e0 100644 --- a/src/proc/synthetic-stream.cpp +++ b/src/proc/synthetic-stream.cpp @@ -189,7 +189,7 @@ namespace librealsense _stream_filter.format = static_cast((int)val); }); - auto index_selector = std::make_shared>(0, std::numeric_limits::max(), 1, -1, &_stream_filter.index, "Stream index"); + auto index_selector = std::make_shared>(-1, std::numeric_limits::max(), 1, -1, &_stream_filter.index, "Stream index"); index_selector->on_set([this, index_selector](float val) { std::lock_guard lock(_mutex);