mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +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
b4a20d3a30
commit
0199de838b
2 changed files with 14 additions and 6 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2008-12-29 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2008-12-29 Wim Taymans <wim.taymans@collabora.co.uk>
|
2008-12-29 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||||
|
|
||||||
* gst/rtpmanager/rtpsource.c: (rtp_source_init),
|
* gst/rtpmanager/rtpsource.c: (rtp_source_init),
|
||||||
|
|
|
@ -1193,14 +1193,16 @@ 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);
|
||||||
g_hash_table_steal (sess->ssrcs[sess->mask_idx],
|
if (ssrc != sess->source->ssrc) {
|
||||||
GINT_TO_POINTER (sess->source->ssrc));
|
g_hash_table_steal (sess->ssrcs[sess->mask_idx],
|
||||||
|
GINT_TO_POINTER (sess->source->ssrc));
|
||||||
|
|
||||||
sess->source->ssrc = ssrc;
|
sess->source->ssrc = ssrc;
|
||||||
rtp_source_reset (sess->source);
|
rtp_source_reset (sess->source);
|
||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue