gsturi: Add new API for storing unmodified userinfo / fragment
authorNirbheek Chauhan <nirbheek@centricular.com>
Thu, 30 Jul 2020 14:01:55 +0000 (19:31 +0530)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 3 Aug 2020 16:07:45 +0000 (16:07 +0000)
commit5195ad91260baded41b3dd65174fef7654e23802
tree7ece0dedffb1ff0c686603e2026c7e88e8e2909c
parent5f4723d84223e29df6006abd4c177914d8a55314
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

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