summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyunjun Ko <zzoon.ko@samsung.com>2015-08-12 14:33:44 +0900
committerSebastian Dröge <sebastian@centricular.com>2015-08-16 12:08:49 +0200
commit4c6b1faa6a7ea97078e95d4614febcba7cd30604 (patch)
treed734fd5d565be10cbba0dafae17faf229358071b
parent418e1fe09001f9a4defc291d9af221d598d9cf45 (diff)
media-factory: get port number through gst_rtsp_url_get_port
https://bugzilla.gnome.org/show_bug.cgi?id=753473
-rw-r--r--gst/rtsp-server/rtsp-media-factory.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gst/rtsp-server/rtsp-media-factory.c b/gst/rtsp-server/rtsp-media-factory.c
index fc9c880..087aa8a 100644
--- a/gst/rtsp-server/rtsp-media-factory.c
+++ b/gst/rtsp-server/rtsp-media-factory.c
@@ -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;
}