mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 08:55:33 +00:00
Since parse can do 'element name=a:b' make 'a:b.' work as well.
Original commit message from CVS: * gst/parse/parse.l: * testsuite/parse/parse1.c: (main): Since parse can do 'element name=a:b' make 'a:b.' work as well. Added testcase to verify fix.
This commit is contained in:
parent
47bf817960
commit
3cf9fdfcb7
4 changed files with 28 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
|||
2004-10-19 Wim Taymans <wim at fluendo dot com>
|
||||
|
||||
* gst/parse/parse.l:
|
||||
* testsuite/parse/parse1.c: (main):
|
||||
Since parse can do 'element name=a:b' make 'a:b.' work as
|
||||
well.
|
||||
Added testcase to verify fix.
|
||||
|
||||
2004-10-19 Wim Taymans <wim at fluendo dot com>
|
||||
|
||||
* tools/gst-inspect.c: (print_pad_info), (print_plugin_features):
|
||||
|
|
|
@ -29,8 +29,8 @@ PRINT (const char *format, ...)
|
|||
#define YY_DECL int _gst_parse_yylex (YYSTYPE *lvalp)
|
||||
%}
|
||||
|
||||
_operator [(){}.:!,;=]
|
||||
_identifier [[:alpha:]][[:alnum:]\-_%]*
|
||||
_operator [(){}.!,;=]
|
||||
_identifier [[:alpha:]][[:alnum:]\-_%:]*
|
||||
|
||||
_char ("\\".)|([^[:space:]])
|
||||
_string {_char}+|("\""([^\"]|"\\\"")*"\"")|("'"([^']|"\\\"")*"'")
|
||||
|
|
|
@ -100,6 +100,7 @@ static gchar *s;
|
|||
#define PIPELINE9 "fakesrc num-buffers=4 ! test. fakesink name=test"
|
||||
#define PIPELINE10 "( fakesrc num-buffers=\"4\" ! ) identity ! fakesink"
|
||||
#define PIPELINE11 "fakesink name = sink identity name=id ( fakesrc num-buffers=\"4\" ! id. ) id. ! sink."
|
||||
#define PIPELINE12 "fakesrc num-buffers=4 name=a:b a:b. ! fakesink"
|
||||
|
||||
gint
|
||||
main (gint argc, gchar * argv[])
|
||||
|
@ -216,5 +217,13 @@ main (gint argc, gchar * argv[])
|
|||
TEST_RUN;
|
||||
TEST_OK;
|
||||
|
||||
/**
|
||||
* checks:
|
||||
* - fails because a:b. is not a valid element reference in parse.l cvs rev 1.29
|
||||
*/
|
||||
TEST_START (PIPELINE12);
|
||||
TEST_RUN;
|
||||
TEST_OK;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -100,6 +100,7 @@ static gchar *s;
|
|||
#define PIPELINE9 "fakesrc num-buffers=4 ! test. fakesink name=test"
|
||||
#define PIPELINE10 "( fakesrc num-buffers=\"4\" ! ) identity ! fakesink"
|
||||
#define PIPELINE11 "fakesink name = sink identity name=id ( fakesrc num-buffers=\"4\" ! id. ) id. ! sink."
|
||||
#define PIPELINE12 "fakesrc num-buffers=4 name=a:b a:b. ! fakesink"
|
||||
|
||||
gint
|
||||
main (gint argc, gchar * argv[])
|
||||
|
@ -216,5 +217,13 @@ main (gint argc, gchar * argv[])
|
|||
TEST_RUN;
|
||||
TEST_OK;
|
||||
|
||||
/**
|
||||
* checks:
|
||||
* - fails because a:b. is not a valid element reference in parse.l cvs rev 1.29
|
||||
*/
|
||||
TEST_START (PIPELINE12);
|
||||
TEST_RUN;
|
||||
TEST_OK;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue