- ret = bt_field_type_integer_set_mapped_clock_class_no_check(
- ft, stream_class->clock->clock_class);
- if (ret) {
- BT_LOGW("Cannot set field type's mapped clock class: "
- "stream-class-addr=%p, stream-class-name=\"%s\", "
- "stream-class-id=%" PRId64 ", ft-addr=%p",
- stream_class, bt_stream_class_get_name(stream_class),
- bt_stream_class_get_id(stream_class), ft);
- goto end;
+ ft_copy = bt_field_type_copy(ft);
+ if (!ft_copy) {
+ BT_LOGE("Failed to copy integer field type: ft-addr=%p",
+ ft);