From 8079085266e18be04aec8af7d1deb25e1d4b9a04 Mon Sep 17 00:00:00 2001 From: Pavel Kulik Date: Thu, 5 Oct 2023 09:33:43 -0700 Subject: [PATCH] RecordNode main_sync -> SelectedStreamParameter --- Source/Processors/RecordNode/RecordNode.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Source/Processors/RecordNode/RecordNode.cpp b/Source/Processors/RecordNode/RecordNode.cpp index 4fce6575c..27efa9241 100755 --- a/Source/Processors/RecordNode/RecordNode.cpp +++ b/Source/Processors/RecordNode/RecordNode.cpp @@ -102,8 +102,7 @@ void RecordNode::registerParameters() addSelectedChannelsParameter(Parameter::STREAM_SCOPE, "sync_line", "Sync Line", "Event line to use for sync signal", 1, true); dataStreamParameters.getLast()->disableUpdateOnSelectedStreamChanged(); - //addIntParameter(Parameter::PROCESSOR_SCOPE, "main_sync", "Main Sync Stream ID", "Use this stream as main sync", 10000, 10000, 99999,true); - addCategoricalParameter(Parameter::PROCESSOR_SCOPE, "main_sync", "Main Sync Stream ID", "Use this stream as main sync", {}, 0, true); + addSelectedStreamParameter(Parameter::PROCESSOR_SCOPE, "main_sync", "Main Sync Stream ID", "Use this stream as main sync", {}, 0, true); } void RecordNode::parameterValueChanged(Parameter* p) @@ -481,10 +480,6 @@ void RecordNode::updateSettings() } - /* Update main sync parameter categories */ - CategoricalParameter* mainSyncParam = (CategoricalParameter*)getParameter("main_sync"); - mainSyncParam->setCategories(streamNames); - synchronizer.finishedUpdate();