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:
Hyunjun Ko 2015-08-12 14:33:44 +09:00 committed by Sebastian Dröge
parent 418e1fe090
commit 4c6b1faa6a

View file

@ -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;
}