From: Hyunjun Ko Date: Wed, 12 Aug 2015 05:33:44 +0000 (+0900) Subject: media-factory: get port number through gst_rtsp_url_get_port X-Git-Tag: 1.19.3~495^2~611 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c6b1faa6a7ea97078e95d4614febcba7cd30604;p=platform%2Fupstream%2Fgstreamer.git media-factory: get port number through gst_rtsp_url_get_port https://bugzilla.gnome.org/show_bug.cgi?id=753473 --- 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; }