gst-plugins-good: rtpmanager: don' t pretend our random hostnames are fully-qualified domain names

Tim Müller tpm at kemper.freedesktop.org
Wed Jan 25 05:20:17 PST 2012


Module: gst-plugins-good
Branch: master
Commit: 5525e409706a3ce4ea85df130d50e8497407ed50
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=5525e409706a3ce4ea85df130d50e8497407ed50

Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date:   Wed Jan 25 13:19:12 2012 +0000

rtpmanager: don't pretend our random hostnames are fully-qualified domain names

---

 gst/rtpmanager/gstrtpbin.c  |    2 +-
 gst/rtpmanager/rtpsession.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gst/rtpmanager/gstrtpbin.c b/gst/rtpmanager/gstrtpbin.c
index 0b2167d..ca5d66b 100644
--- a/gst/rtpmanager/gstrtpbin.c
+++ b/gst/rtpmanager/gstrtpbin.c
@@ -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 at x-%u.net", g_random_int (), g_random_int ());
+  cname = g_strdup_printf ("user%u at 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);
diff --git a/gst/rtpmanager/rtpsession.c b/gst/rtpmanager/rtpsession.c
index 72849a7..9f15bd6 100644
--- a/gst/rtpmanager/rtpsession.c
+++ b/gst/rtpmanager/rtpsession.c
@@ -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 at x-%u.net", g_random_int (), g_random_int ());
+  str = g_strdup_printf ("user%u at host-%x", g_random_int (), g_random_int ());
   rtp_source_set_sdes_string (sess->source, GST_RTCP_SDES_CNAME, str);
   g_free (str);
 



More information about the gstreamer-commits mailing list