Skip to content

Commit

Permalink
rtp/sess.c: lock rtcp_sess in rtcp_set_srate_tx to fix data race (#1223)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianfridrich authored Dec 4, 2024
1 parent 8628ea8 commit b05de30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rtp/sess.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,9 @@ void rtcp_set_srate_tx(struct rtp_sock *rs, uint32_t srate_tx)
if (!sess)
return;

mtx_lock(sess->lock);
sess->srate_tx = srate_tx;
mtx_unlock(sess->lock);
}


Expand Down

0 comments on commit b05de30

Please sign in to comment.