for (i = 0; i < trace->stream_classes->len; i++) {
if (trace->stream_classes->pdata[i] == stream_class) {
+ /* Stream already registered to the trace */
ret = -1;
goto end;
}
}
}
- if (_bt_ctf_stream_class_set_id(stream_class,
- stream_id)) {
+ if (bt_ctf_stream_class_set_id_no_check(stream_class, stream_id)) {
/* TODO Should retry with a different stream id */
ret = -1;
goto end;