mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
tests: fix passing of URIs containing '*' and '?' to the seek example
Only do wildcard expansion (why?!) on things that look like local file paths. Fixes passing of URIs containing '*' and '?' (see #629212).
This commit is contained in:
parent
4e379a4e59
commit
a2cbc39a50
1 changed files with 3 additions and 2 deletions
|
@ -2661,8 +2661,9 @@ main (int argc, char **argv)
|
|||
|
||||
pipeline_spec = argv[2];
|
||||
|
||||
if (g_strrstr (pipeline_spec, "*") != NULL ||
|
||||
g_strrstr (pipeline_spec, "?") != NULL) {
|
||||
if (g_path_is_absolute (pipeline_spec) &&
|
||||
(g_strrstr (pipeline_spec, "*") != NULL ||
|
||||
g_strrstr (pipeline_spec, "?") != NULL)) {
|
||||
paths = handle_wildcards (pipeline_spec);
|
||||
} else {
|
||||
paths = g_list_prepend (paths, g_strdup (pipeline_spec));
|
||||
|
|
Loading…
Reference in a new issue