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:
Wim Taymans 2008-12-29 15:21:58 +00:00 committed by Tim-Philipp Müller
parent 3fe87f7eab
commit 1786eb1e25

View file

@ -1193,6 +1193,7 @@ void
rtp_session_set_internal_ssrc (RTPSession * sess, guint32 ssrc) rtp_session_set_internal_ssrc (RTPSession * sess, guint32 ssrc)
{ {
RTP_SESSION_LOCK (sess); RTP_SESSION_LOCK (sess);
if (ssrc != sess->source->ssrc) {
g_hash_table_steal (sess->ssrcs[sess->mask_idx], g_hash_table_steal (sess->ssrcs[sess->mask_idx],
GINT_TO_POINTER (sess->source->ssrc)); GINT_TO_POINTER (sess->source->ssrc));
@ -1201,6 +1202,7 @@ rtp_session_set_internal_ssrc (RTPSession * sess, guint32 ssrc)
g_hash_table_insert (sess->ssrcs[sess->mask_idx], g_hash_table_insert (sess->ssrcs[sess->mask_idx],
GINT_TO_POINTER (sess->source->ssrc), sess->source); GINT_TO_POINTER (sess->source->ssrc), sess->source);
}
RTP_SESSION_UNLOCK (sess); RTP_SESSION_UNLOCK (sess);
} }