summaryrefslogtreecommitdiffstats
path: root/gst/rtpmanager/rtpsource.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/rtpmanager/rtpsource.c')
-rw-r--r--gst/rtpmanager/rtpsource.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/rtpmanager/rtpsource.c b/gst/rtpmanager/rtpsource.c
index 355526ee..ed080717 100644
--- a/gst/rtpmanager/rtpsource.c
+++ b/gst/rtpmanager/rtpsource.c
@@ -199,6 +199,7 @@ make_address_string (GstNetAddress * addr, gchar * dest, gulong n)
guint16 port;
gst_netaddress_get_ip4_address (addr, &address, &port);
+ address = g_ntohl (address);
g_snprintf (dest, n, "%d.%d.%d.%d:%d", (address >> 24) & 0xff,
(address >> 16) & 0xff, (address >> 8) & 0xff, address & 0xff,
@@ -321,7 +322,8 @@ rtp_source_create_sdes (RTPSource * src)
GstStructure *s;
gchar *str;
- s = gst_structure_new ("application/x-rtp-source-sdes", NULL);
+ s = gst_structure_new ("application/x-rtp-source-sdes",
+ "ssrc", G_TYPE_UINT, (guint) src->ssrc, NULL);
if ((str = rtp_source_get_sdes_string (src, GST_RTCP_SDES_CNAME))) {
gst_structure_set (s, "cname", G_TYPE_STRING, str, NULL);