Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtp: sess - fix coverity warning #1058

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading