mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
media-factory: get port number through gst_rtsp_url_get_port
https://bugzilla.gnome.org/show_bug.cgi?id=753473
This commit is contained in:
parent
418e1fe090
commit
4c6b1faa6a
1 changed files with 4 additions and 2 deletions
|
@ -1148,12 +1148,14 @@ default_gen_key (GstRTSPMediaFactory * factory, const GstRTSPUrl * url)
|
||||||
gchar *result;
|
gchar *result;
|
||||||
const gchar *pre_query;
|
const gchar *pre_query;
|
||||||
const gchar *query;
|
const gchar *query;
|
||||||
|
guint16 port;
|
||||||
|
|
||||||
pre_query = url->query ? "?" : "";
|
pre_query = url->query ? "?" : "";
|
||||||
query = url->query ? url->query : "";
|
query = url->query ? url->query : "";
|
||||||
|
|
||||||
result =
|
gst_rtsp_url_get_port (url, &port);
|
||||||
g_strdup_printf ("%u%s%s%s", url->port, url->abspath, pre_query, query);
|
|
||||||
|
result = g_strdup_printf ("%u%s%s%s", port, url->abspath, pre_query, query);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue