MT#55283 atomic read of jitter

Change-Id: I7bc1c2b3f4ed9b7b24b28795e700dc8faaacabf1
Warned-by: Coverity
pull/2223/head
Richard Fuchs 3 weeks ago
parent de2fbd2dea
commit 1db2ec7732

@ -735,7 +735,7 @@ void ssrc_collect_metrics(struct call_media *media) {
break; // end of list
// work on a copy, as the estimator itself must stay in RTP timestamp units
uint32_t jitter = s->jitter;
uint32_t jitter = atomic_get_na(&s->jitter);
// exclude zero values - technically possible but unlikely and probably just unset
if (!jitter)
continue;

Loading…
Cancel
Save