-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,6 +130,8 @@ struct upipe_srt_handshake { | |
|
||
uint64_t last_hs_sent; | ||
|
||
uint64_t rtt_0; | ||
|
||
/** public upipe structure */ | ||
struct upipe upipe; | ||
}; | ||
|
@@ -795,6 +797,8 @@ static void upipe_srt_handshake_finalize(struct upipe *upipe) | |
upipe_err(upipe, "damn"); | ||
} | ||
|
||
uref_clock_set_latency(flow_def, upipe_srt_handshake->rtt_0); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
funman
Author
Owner
|
||
|
||
uref_pic_set_number(flow_def, upipe_srt_handshake->isn); | ||
upipe_srt_handshake_store_flow_def(upipe, flow_def); | ||
/* force sending flow definition immediately */ | ||
|
@@ -1405,6 +1409,7 @@ static struct uref *upipe_srt_handshake_handle_hs(struct upipe *upipe, const uin | |
upipe_srt_handshake->caller_conclusion = NULL; | ||
} | ||
} else { | ||
upipe_srt_handshake->rtt_0 = now - upipe_srt_handshake->last_hs_sent; | ||
This comment has been minimized.
Sorry, something went wrong.
kierank
|
||
if (hs_packet.version != SRT_HANDSHAKE_VERSION || hs_packet.dst_socket_id != upipe_srt_handshake->socket_id) { | ||
upipe_err_va(upipe, "Malformed handshake (%08x != %08x)", | ||
hs_packet.dst_socket_id, upipe_srt_handshake->socket_id); | ||
|
@@ -1418,6 +1423,7 @@ static struct uref *upipe_srt_handshake_handle_hs(struct upipe *upipe, const uin | |
} | ||
} else { /* listener */ | ||
if (conclusion) { | ||
upipe_srt_handshake->rtt_0 = now - upipe_srt_handshake->establish_time; | ||
uref = upipe_srt_handshake_handle_hs_listener_conclusion(upipe, size, timestamp, &hs_packet); | ||
} else { | ||
if (hs_packet.version != SRT_HANDSHAKE_VERSION_MIN || hs_packet.encryption != SRT_HANDSHAKE_CIPHER_NONE || | ||
|
1 comment
on commit 2dfe549
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will propagate downstream and anyway latency is not correct here as this is RTT.