From: Wim Taymans Date: Fri, 26 Jul 2013 08:47:28 +0000 (+0200) Subject: session: remove old code to change SSRC X-Git-Tag: 1.19.3~509^2~5541 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd0709c15cf9a039fc16e7539212764bab2fa436;p=platform%2Fupstream%2Fgstreamer.git session: remove old code to change SSRC Remove code used to change the SSRC after a collision. We now send a RECONFIGURE event upstream to make the upstream element change the SSRC. --- diff --git a/gst/rtpmanager/rtpsession.c b/gst/rtpmanager/rtpsession.c index 8365d66..85020a8 100644 --- a/gst/rtpmanager/rtpsession.c +++ b/gst/rtpmanager/rtpsession.c @@ -323,7 +323,6 @@ rtp_session_class_init (RTPSessionClass * klass) * Requests that the #RTPSession initiate a new RTCP packet as soon as * possible within the requested delay. */ - rtp_session_signals[SIGNAL_SEND_RTCP] = g_signal_new ("send-rtcp", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, @@ -2731,7 +2730,6 @@ typedef struct gboolean has_sdes; gboolean is_early; gboolean may_suppress; - gboolean notify; GQueue output; } ReportData; @@ -3137,22 +3135,6 @@ generate_rtcp (const gchar * key, RTPSource * source, ReportData * data) gst_rtcp_buffer_unmap (&data->rtcpbuf); - if (sess->change_ssrc) { - GST_DEBUG ("need to change our SSRC (%08x)", source->ssrc); - g_hash_table_steal (sess->ssrcs[sess->mask_idx], - GINT_TO_POINTER (source->ssrc)); - - source->ssrc = rtp_session_create_new_ssrc (sess); - rtp_source_reset (source); - - g_hash_table_insert (sess->ssrcs[sess->mask_idx], - GINT_TO_POINTER (source->ssrc), source); - - sess->change_ssrc = FALSE; - data->notify = TRUE; - GST_DEBUG ("changed our SSRC to %08x", source->ssrc); - } - output = g_slice_new (ReportOutput); output->source = g_object_ref (source); output->is_bye = is_bye; @@ -3199,7 +3181,6 @@ rtp_session_on_timeout (RTPSession * sess, GstClockTime current_time, data.ntpnstime = ntpnstime; data.running_time = running_time; data.may_suppress = FALSE; - data.notify = FALSE; g_queue_init (&data.output); RTP_SESSION_LOCK (sess); @@ -3240,9 +3221,6 @@ rtp_session_on_timeout (RTPSession * sess, GstClockTime current_time, done: RTP_SESSION_UNLOCK (sess); - if (data.notify) - g_object_notify (G_OBJECT (sess), "internal-ssrc"); - /* push out the RTCP packets */ while ((output = g_queue_pop_head (&data.output))) { gboolean do_not_suppress; @@ -3273,7 +3251,6 @@ done: g_object_unref (source); g_slice_free (ReportOutput, output); } - return result; } diff --git a/gst/rtpmanager/rtpsession.h b/gst/rtpmanager/rtpsession.h index 341bcbd..8ab568e 100644 --- a/gst/rtpmanager/rtpsession.h +++ b/gst/rtpmanager/rtpsession.h @@ -229,7 +229,6 @@ struct _RTPSession { RTPSessionStats stats; - gboolean change_ssrc; gboolean favor_new; GstClockTime rtcp_feedback_retention_window; guint rtcp_immediate_feedback_threshold; diff --git a/gst/rtpmanager/rtpsource.c b/gst/rtpmanager/rtpsource.c index 8104613..185ea1c 100644 --- a/gst/rtpmanager/rtpsource.c +++ b/gst/rtpmanager/rtpsource.c @@ -464,7 +464,6 @@ rtp_source_set_sdes_struct (RTPSource * src, GstStructure * sdes) } else { gst_structure_free (sdes); } - return changed; }