When we generate the key to share made between connections, don't include the
host used to connect so that we can share media even if between clients that
connected with localhost and ones with the ip address.
default_gen_key (GstRTSPMediaFactory *factory, const GstRTSPUrl *url)
{
gchar *result;
+ const gchar *pre_query;
+ const gchar *query;
- result = gst_rtsp_url_get_request_uri ((GstRTSPUrl *)url);
+ pre_query = url->query ? "?" : "";
+ query = url->query ? url->query : "";
+
+ result = g_strdup_printf ("%u%s%s%s", url->port, url->abspath, pre_query, query);
return result;
}