media-factory: don't use host for shared hash key

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.
This commit is contained in:
Wim Taymans 2010-09-23 11:32:58 +02:00
parent 3c283b2af8
commit c310f0032c

View file

@ -413,8 +413,13 @@ static gchar *
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;
}