summaryrefslogtreecommitdiffstats
path: root/gst/rtpmanager/gstrtpsession.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2008-12-29 15:49:37 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-08-11 02:30:40 +0100
commit06d1532024cefe9791032104eb2362999ed2e47a (patch)
treed771e112fe19e3de696ffcd6dcb28a24a1a77ad4 /gst/rtpmanager/gstrtpsession.c
parent1786eb1e253c1a21b413f13028745700efa9c1c6 (diff)
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.
Diffstat (limited to 'gst/rtpmanager/gstrtpsession.c')
-rw-r--r--gst/rtpmanager/gstrtpsession.c6
1 files changed, 4 insertions, 2 deletions
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);