rtpmanager: don't pretend our random hostnames are fully-qualified domain names
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 25 Jan 2012 13:19:12 +0000 (13:19 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 25 Jan 2012 13:19:12 +0000 (13:19 +0000)
gst/rtpmanager/gstrtpbin.c
gst/rtpmanager/rtpsession.c

index 0b2167d..ca5d66b 100644 (file)
@@ -1901,7 +1901,7 @@ gst_rtp_bin_init (GstRtpBin * rtpbin, GstRtpBinClass * klass)
   rtpbin->use_pipeline_clock = DEFAULT_USE_PIPELINE_CLOCK;
 
   /* some default SDES entries */
-  cname = g_strdup_printf ("user%u@x-%u.net", g_random_int (), g_random_int ());
+  cname = g_strdup_printf ("user%u@host-%x", g_random_int (), g_random_int ());
   rtpbin->sdes = gst_structure_new ("application/x-rtp-source-sdes",
       "cname", G_TYPE_STRING, cname, "tool", G_TYPE_STRING, "GStreamer", NULL);
   g_free (cname);
index 72849a7..9f15bd6 100644 (file)
@@ -558,7 +558,7 @@ rtp_session_init (RTPSession * sess)
   /* some default SDES entries */
 
   /* we do not want to leak details like the username or hostname here */
-  str = g_strdup_printf ("user%u@x-%u.net", g_random_int (), g_random_int ());
+  str = g_strdup_printf ("user%u@host-%x", g_random_int (), g_random_int ());
   rtp_source_set_sdes_string (sess->source, GST_RTCP_SDES_CNAME, str);
   g_free (str);