mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-27 15:34:49 +00:00
uri: Fix indention
This commit is contained in:
parent
d20fa132c1
commit
40a0275298
2 changed files with 18 additions and 16 deletions
|
@ -1530,7 +1530,8 @@ gst_uri_from_string (const gchar * uri)
|
|||
int i = 0;
|
||||
|
||||
/* be helpful and skip initial white space */
|
||||
while (*uri == '\v' || g_ascii_isspace (*uri)) uri++;
|
||||
while (*uri == '\v' || g_ascii_isspace (*uri))
|
||||
uri++;
|
||||
|
||||
if (g_ascii_isalpha (uri[i])) {
|
||||
/* find end of scheme name */
|
||||
|
|
|
@ -373,13 +373,14 @@ static const struct URITest url_presenting_tests[] = {
|
|||
/* check all URI elements present */
|
||||
{.uri = {"scheme", "user:pass", "host", 1234, "/path/to/dir",
|
||||
{{"query", NULL}, {"key", "value"}}, "fragment"},
|
||||
.str = "scheme://user:pass@host:1234/path/to/dir?query&key=value#fragment"
|
||||
},
|
||||
.str =
|
||||
"scheme://user:pass@host:1234/path/to/dir?query&key=value#fragment"},
|
||||
|
||||
/* IPv6 literal should render in square brackets */
|
||||
{.uri = {"scheme", "user:pass", "12:34:56:78:9a:bc:de:f0", 1234,
|
||||
"/path/to/dir", {{"query", "value"}}, "fragment"},
|
||||
.str = "scheme://user:pass@[12:34:56:78:9a:bc:de:f0]:1234/path/to/dir?query=value#fragment" },
|
||||
.str =
|
||||
"scheme://user:pass@[12:34:56:78:9a:bc:de:f0]:1234/path/to/dir?query=value#fragment"},
|
||||
};
|
||||
|
||||
GST_START_TEST (test_url_presenting)
|
||||
|
|
Loading…
Reference in a new issue