[Bug 763313] gst-rtsp-server: matching of media fails when using different IPs/hostnames

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Feb 2 16:24:10 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=763313

--- Comment #5 from bomba_____ <jhonata.poma at gmail.com> ---
gst-rtsp-server/gst/rtsp-server/rtsp-media-factory.c +1278

static gchar *
default_gen_key (GstRTSPMediaFactory * factory, const GstRTSPUrl * url)
{
  gchar *result;
  const gchar *pre_query;
  const gchar *query;
  guint16 port;

  pre_query = url->query ? "?" : "";
  query = url->query ? url->query : "";

  gst_rtsp_url_get_port (url, &port);

  result = g_strdup_printf ("%u%s%s%s", port, url->abspath, pre_query, query);

  return result;
}


Why result is composed using the port? This actually causes the problem.

result = g_strdup_printf ("%s%s%s", url->abspath, pre_query, query);

Fixes it. Is it safe?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list