mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
rtpmanager: don't pretend our random hostnames are fully-qualified domain names
This commit is contained in:
parent
a476d529d2
commit
5525e40970
2 changed files with 2 additions and 2 deletions
|
@ -1901,7 +1901,7 @@ gst_rtp_bin_init (GstRtpBin * rtpbin, GstRtpBinClass * klass)
|
||||||
rtpbin->use_pipeline_clock = DEFAULT_USE_PIPELINE_CLOCK;
|
rtpbin->use_pipeline_clock = DEFAULT_USE_PIPELINE_CLOCK;
|
||||||
|
|
||||||
/* some default SDES entries */
|
/* 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",
|
rtpbin->sdes = gst_structure_new ("application/x-rtp-source-sdes",
|
||||||
"cname", G_TYPE_STRING, cname, "tool", G_TYPE_STRING, "GStreamer", NULL);
|
"cname", G_TYPE_STRING, cname, "tool", G_TYPE_STRING, "GStreamer", NULL);
|
||||||
g_free (cname);
|
g_free (cname);
|
||||||
|
|
|
@ -558,7 +558,7 @@ rtp_session_init (RTPSession * sess)
|
||||||
/* some default SDES entries */
|
/* some default SDES entries */
|
||||||
|
|
||||||
/* we do not want to leak details like the username or hostname here */
|
/* 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);
|
rtp_source_set_sdes_string (sess->source, GST_RTCP_SDES_CNAME, str);
|
||||||
g_free (str);
|
g_free (str);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue