mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
ptp: Ignore DELAY_RESP messages not for us earlier in the main process
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4665>
This commit is contained in:
parent
5a79d230ce
commit
61a6b79e62
1 changed files with 7 additions and 7 deletions
|
@ -1715,6 +1715,13 @@ handle_delay_resp_message (PtpMessage * msg, GstClockTime receive_time)
|
||||||
PtpDomainData *domain = NULL;
|
PtpDomainData *domain = NULL;
|
||||||
PtpPendingSync *sync = NULL;
|
PtpPendingSync *sync = NULL;
|
||||||
|
|
||||||
|
/* Not for us */
|
||||||
|
if (msg->message_specific.delay_resp.
|
||||||
|
requesting_port_identity.clock_identity != ptp_clock_id.clock_identity
|
||||||
|
|| msg->message_specific.delay_resp.
|
||||||
|
requesting_port_identity.port_number != ptp_clock_id.port_number)
|
||||||
|
return;
|
||||||
|
|
||||||
/* Don't consider messages with the alternate master flag set */
|
/* Don't consider messages with the alternate master flag set */
|
||||||
if ((msg->flag_field & 0x0100))
|
if ((msg->flag_field & 0x0100))
|
||||||
return;
|
return;
|
||||||
|
@ -1737,13 +1744,6 @@ handle_delay_resp_message (PtpMessage * msg, GstClockTime receive_time)
|
||||||
&msg->source_port_identity) != 0)
|
&msg->source_port_identity) != 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Not for us */
|
|
||||||
if (msg->message_specific.delay_resp.
|
|
||||||
requesting_port_identity.clock_identity != ptp_clock_id.clock_identity
|
|
||||||
|| msg->message_specific.delay_resp.
|
|
||||||
requesting_port_identity.port_number != ptp_clock_id.port_number)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (msg->log_message_interval == 0x7f) {
|
if (msg->log_message_interval == 0x7f) {
|
||||||
domain->min_delay_req_interval = GST_SECOND;
|
domain->min_delay_req_interval = GST_SECOND;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue