File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,8 @@ device::device(std::shared_ptr<context> ctx,
127
127
: _context(ctx), _group(group), _is_valid(true ),
128
128
_device_changed_notifications(device_changed_notifications)
129
129
{
130
+ _profiles_tags = lazy<std::vector<tagged_profile>>([this ]() { return get_profiles_tags (); });
131
+
130
132
if (_device_changed_notifications)
131
133
{
132
134
auto cb = new devices_changed_callback_internal ([this ](rs2_device_list* removed, rs2_device_list* added)
@@ -144,7 +146,6 @@ device::device(std::shared_ptr<context> ctx,
144
146
});
145
147
146
148
_callback_id = _context->register_internal_device_callback ({ cb, [](rs2_devices_changed_callback* p) { p->release (); } });
147
- _profiles_tags = lazy<std::vector<tagged_profile>>([this ]() { return get_profiles_tags (); });
148
149
}
149
150
}
150
151
You can’t perform that action at this time.
0 commit comments