mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 08:55:33 +00:00
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:
parent
3c283b2af8
commit
c310f0032c
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue