From 231fcedd6dce08f8313b95c389288d021c257fb2 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 29 Dec 2008 15:49:37 +0000 Subject: gst/rtpmanager/gstrtpsession.c: Use method to get the internal SSRC. Original commit message from CVS: * gst/rtpmanager/gstrtpsession.c: (gst_rtp_session_getcaps_send_rtp): Use method to get the internal SSRC. * gst/rtpmanager/rtpsession.c: (rtp_session_class_init), (rtp_session_set_property), (rtp_session_get_property): Add property to congiure the internal SSRC of the session. Fixes #565910. --- gst/rtpmanager/gstrtpsession.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gst/rtpmanager/gstrtpsession.c') diff --git a/gst/rtpmanager/gstrtpsession.c b/gst/rtpmanager/gstrtpsession.c index 1c223183..e9af8977 100644 --- a/gst/rtpmanager/gstrtpsession.c +++ b/gst/rtpmanager/gstrtpsession.c @@ -1653,15 +1653,17 @@ gst_rtp_session_getcaps_send_rtp (GstPad * pad) GstRtpSessionPrivate *priv; GstCaps *result; GstStructure *s1, *s2; + guint ssrc; rtpsession = GST_RTP_SESSION (gst_pad_get_parent (pad)); priv = rtpsession->priv; + ssrc = rtp_session_get_internal_ssrc (priv->session); + /* we can basically accept anything but we prefer to receive packets with our * internal SSRC so that we don't have to patch it. Create a structure with * the SSRC and another one without. */ - s1 = gst_structure_new ("application/x-rtp", - "ssrc", G_TYPE_UINT, priv->session->source->ssrc, NULL); + s1 = gst_structure_new ("application/x-rtp", "ssrc", G_TYPE_UINT, ssrc, NULL); s2 = gst_structure_new ("application/x-rtp", NULL); result = gst_caps_new_full (s1, s2, NULL); -- cgit v1.2.1