Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/transport/scheduler/xqc_scheduler_backup_fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,17 @@ xqc_backup_fec_scheduler_get_path(void *scheduler, xqc_connection_t *conn,
#endif

if (ret_path != NULL) {
#ifdef XQC_ENABLE_FEC
if (conn->fec_ctl
&& conn->fec_ctl->fec_mp_mode == XQC_FEC_MP_USE_STB
&& (packet_out->po_frame_types & XQC_FRAME_BIT_REPAIR_SYMBOL))
{
conn->fec_ctl->fec_rep_path_id =
(ret_path->app_path_status == XQC_APP_PATH_STATUS_STANDBY)
? ret_path->path_id
: XQC_MAX_UINT64_VALUE;
}
#endif
xqc_log(conn->log, XQC_LOG_DEBUG, "|best path:%ui|frame_type:%s|"
"pn:%ui|size:%ud|reinj:%d|path_class:%d|",
ret_path->path_id,
Expand Down Expand Up @@ -240,4 +251,4 @@ const xqc_scheduler_callback_t xqc_backup_fec_scheduler_cb = {
.xqc_scheduler_init = xqc_backup_fec_scheduler_init,
.xqc_scheduler_get_path = xqc_backup_fec_scheduler_get_path,
.xqc_scheduler_handle_conn_event = xqc_backup_fec_scheduler_handle_conn_event,
};
};
Loading