Skip to content

Commit

Permalink
rtp: sess - fix coverity warning (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 authored Jan 24, 2024
1 parent fb2ef56 commit bb7eeea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/rtp/sess.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,9 +466,14 @@ static int mk_sr(struct rtcp_sess *sess, struct mbuf *mb)
static int sdes_encode_handler(struct mbuf *mb, void *arg)
{
struct rtcp_sess *sess = arg;
int err;

return rtcp_sdes_encode(mb, rtp_sess_ssrc(sess->rs), 1,
mtx_lock(sess->lock);
err = rtcp_sdes_encode(mb, rtp_sess_ssrc(sess->rs), 1,
RTCP_SDES_CNAME, sess->cname);
mtx_unlock(sess->lock);

return err;
}


Expand Down

0 comments on commit bb7eeea

Please sign in to comment.