mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +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;
|
||||
const gchar *pre_query;
|
||||
const gchar *query;
|
||||
guint16 port;
|
||||
|
||||
pre_query = url->query ? "?" : "";
|
||||
query = url->query ? url->query : "";
|
||||
|
||||
result =
|
||||
g_strdup_printf ("%u%s%s%s", url->port, url->abspath, pre_query, query);
|
||||
gst_rtsp_url_get_port (url, &port);
|
||||
|
||||
result = g_strdup_printf ("%u%s%s%s", port, url->abspath, pre_query, query);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue