gsturi: Add new API for storing unmodified userinfo / fragment 79/253379/3
authorNirbheek Chauhan <nirbheek@centricular.com>
Thu, 30 Jul 2020 14:01:55 +0000 (19:31 +0530)
committerSangchul Lee <sc11.lee@samsung.com>
Wed, 21 Apr 2021 01:51:34 +0000 (10:51 +0900)
commitfc1d73af85cae7cd988ef86c470dc5480917c988
tree65bf5171914132b7c3d3ac334b361d0b6f7ce454
parenta0e7834adea41c6e20d0525404bb125f79767bc4
gsturi: Add new API for storing unmodified userinfo / fragment

New API: gst_uri_from_string_escaped()

Identical to gst_uri_from_string() except that the userinfo and
fragment components of the URI will not be unescaped while parsing.

This is needed for correctly parsing usernames or passwords with `:`
in them such as reported at:
https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/831

Change-Id: Ib46abff5f24e259a5e505092fcc99b3fdc82ca3e
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/583>
gst/gsturi.c
gst/gsturi.h
tests/check/gst/gsturi.c