Browse Source

MT#62735 fix heuristic learning mode

Change-Id: I2bfd09eefaf6a13f1c7435efa2e07c9ccecfa964
rfuchs/security
Richard Fuchs 7 months ago
parent
commit
9068638a4d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      daemon/media_socket.c

+ 2
- 2
daemon/media_socket.c View File

@ -2516,9 +2516,9 @@ static bool media_packet_address_check(struct packet_handler_ctx *phc)
&& phc->mp.stream->advertised_endpoint.port) && phc->mp.stream->advertised_endpoint.port)
{ {
// check if we need to reset our learned endpoints // check if we need to reset our learned endpoints
if ((rtpe_now - phc->mp.stream->ep_detect_signal) != 0) {
if ((phc->mp.call->last_signal_us - phc->mp.stream->ep_detect_signal) != 0) {
memset(&phc->mp.stream->detected_endpoints, 0, sizeof(phc->mp.stream->detected_endpoints)); memset(&phc->mp.stream->detected_endpoints, 0, sizeof(phc->mp.stream->detected_endpoints));
phc->mp.stream->ep_detect_signal = rtpe_now;
phc->mp.stream->ep_detect_signal = phc->mp.call->last_signal_us;
} }
// possible endpoints that can be detected in order of preference: // possible endpoints that can be detected in order of preference:


Loading…
Cancel
Save