diff --git a/modules/asam_cmp_capture_module/src/interface_fb.cpp b/modules/asam_cmp_capture_module/src/interface_fb.cpp index 211f5da..999f743 100644 --- a/modules/asam_cmp_capture_module/src/interface_fb.cpp +++ b/modules/asam_cmp_capture_module/src/interface_fb.cpp @@ -56,8 +56,9 @@ void InterfaceFb::removeStreamInternal(size_t nInd) void InterfaceFb::initProperties() { auto propName = "VendorData"; - auto prop = StringPropertyBuilder(propName, vendorDataAsString).build(); + auto prop = StringPropertyBuilder(propName, "").build(); objPtr.addProperty(prop); + objPtr.setPropertyValue(propName, vendorDataAsString); objPtr.getOnPropertyValueWrite(propName) += [this](PropertyObjectPtr& obj, PropertyValueEventArgsPtr& args) { propertyChangedIfNotUpdating(); }; } diff --git a/shared/libraries/asam_cmp_common_lib/include/asam_cmp_common_lib/stream_common_fb_impl.h b/shared/libraries/asam_cmp_common_lib/include/asam_cmp_common_lib/stream_common_fb_impl.h index 1acb587..a8ec979 100644 --- a/shared/libraries/asam_cmp_common_lib/include/asam_cmp_common_lib/stream_common_fb_impl.h +++ b/shared/libraries/asam_cmp_common_lib/include/asam_cmp_common_lib/stream_common_fb_impl.h @@ -102,11 +102,12 @@ template void StreamCommonFbImpl::initProperties() { StringPtr propName = "StreamId"; - auto prop = IntPropertyBuilder(propName, streamId) + auto prop = IntPropertyBuilder(propName, 0) .setMinValue(static_cast(std::numeric_limits::min())) .setMaxValue(static_cast(std::numeric_limits::max())) .build(); this->objPtr.addProperty(prop); + this->objPtr.setPropertyValue(propName, static_cast(streamId)); this->objPtr.getOnPropertyValueWrite(propName) += [this](PropertyObjectPtr& obj, PropertyValueEventArgsPtr& args) { updateStreamIdInternal(); }; } diff --git a/shared/libraries/asam_cmp_common_lib/src/interface_common_fb.cpp b/shared/libraries/asam_cmp_common_lib/src/interface_common_fb.cpp index c277835..ad13aa1 100644 --- a/shared/libraries/asam_cmp_common_lib/src/interface_common_fb.cpp +++ b/shared/libraries/asam_cmp_common_lib/src/interface_common_fb.cpp @@ -37,11 +37,12 @@ FunctionBlockTypePtr InterfaceCommonFb::CreateType(const ModuleInfoPtr& moduleIn void InterfaceCommonFb::initProperties() { StringPtr propName = "InterfaceId"; - auto prop = IntPropertyBuilder(propName, interfaceId) + auto prop = IntPropertyBuilder(propName, 0) .setMinValue(static_cast(std::numeric_limits::min())) .setMaxValue(static_cast(std::numeric_limits::max())) .build(); objPtr.addProperty(prop); + objPtr.setPropertyValue(propName, static_cast(interfaceId)); objPtr.getOnPropertyValueWrite(propName) += [this](PropertyObjectPtr& obj, PropertyValueEventArgsPtr& args) { propertyChangedIfNotUpdating(); };