rtsp-client: Fix url for generating key in media factory
authorBruce Liang <Bruce.Liang@Abilitycorp.com.tw>
Tue, 12 Jul 2022 08:58:00 +0000 (16:58 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 12 Jul 2022 10:01:35 +0000 (10:01 +0000)
commitebd8bd8f13dd163f40e6cf2def21b3075b548174
tree7c383cf2ba79a8ec9fcf63c6c33f9513cf1b1b0f
parent3511be9a05b993f130d10ef42fe8d668c4c6b73b
rtsp-client: Fix url for generating key in media factory

The mount point at / can be accessed by both the URL forms rtsp://<IP>:<PORT> and rtsp://<IP>:<PORT>/.
To make media factory generating the same key for both the URL forms, the url sent to gst_rtsp_media_factory_construct() needs to be normalized first.
This commit creates a new GstRTSPUrl as the normalized url to send to gst_rtsp_media_factory_construct().

Fixes:https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1297

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2681>
subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-client.c