mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
gst/rtpmanager/rtpsession.c: Only change the SSRC of the session and reset the internal source when the SSRC actually...
Original commit message from CVS: * gst/rtpmanager/rtpsession.c: (rtp_session_set_internal_ssrc): Only change the SSRC of the session and reset the internal source when the SSRC actually changed. See #565910.
This commit is contained in:
parent
3fe87f7eab
commit
1786eb1e25
1 changed files with 8 additions and 6 deletions
|
@ -1193,14 +1193,16 @@ void
|
|||
rtp_session_set_internal_ssrc (RTPSession * sess, guint32 ssrc)
|
||||
{
|
||||
RTP_SESSION_LOCK (sess);
|
||||
g_hash_table_steal (sess->ssrcs[sess->mask_idx],
|
||||
GINT_TO_POINTER (sess->source->ssrc));
|
||||
if (ssrc != sess->source->ssrc) {
|
||||
g_hash_table_steal (sess->ssrcs[sess->mask_idx],
|
||||
GINT_TO_POINTER (sess->source->ssrc));
|
||||
|
||||
sess->source->ssrc = ssrc;
|
||||
rtp_source_reset (sess->source);
|
||||
sess->source->ssrc = ssrc;
|
||||
rtp_source_reset (sess->source);
|
||||
|
||||
g_hash_table_insert (sess->ssrcs[sess->mask_idx],
|
||||
GINT_TO_POINTER (sess->source->ssrc), sess->source);
|
||||
g_hash_table_insert (sess->ssrcs[sess->mask_idx],
|
||||
GINT_TO_POINTER (sess->source->ssrc), sess->source);
|
||||
}
|
||||
RTP_SESSION_UNLOCK (sess);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue