uri: Fix indention

This commit is contained in:
Sebastian Dröge 2015-01-22 23:10:06 +02:00
parent d20fa132c1
commit 40a0275298
2 changed files with 18 additions and 16 deletions

View file

@ -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 */

View file

@ -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)