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
committerWim Taymans <wim.taymans@gmail.com>2008-12-29 15:49:37 +0000
commit231fcedd6dce08f8313b95c389288d021c257fb2 (patch)
treeb705d27e4273ed358459aa2304412a678e100187 /gst/rtpmanager/gstrtpsession.c
parent0199de838b226e1f56a1867325c1b84f7891b248 (diff)
downloadgst-plugins-bad-231fcedd6dce08f8313b95c389288d021c257fb2.tar.gz
gst-plugins-bad-231fcedd6dce08f8313b95c389288d021c257fb2.tar.bz2
gst-plugins-bad-231fcedd6dce08f8313b95c389288d021c257fb2.zip
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);