summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2015-10-29 12:04:31 +0000
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2015-10-29 12:04:31 +0000
commit7443f35249572d237ef16859969fb11126ea0184 (patch)
tree01277bd6dd7df509b923de371d15f57685af8918 /tests
parent4eea6c3833f5ad3f9154ec67785ae4ea1f64b89b (diff)
downloadgstreamer-plugins-bad-7443f35249572d237ef16859969fb11126ea0184.tar.gz
dash_mpd: restrict segment template format strings to %0[0-9]*d as per spec
https://bugzilla.gnome.org/show_bug.cgi?id=751735
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/dash_mpd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/check/elements/dash_mpd.c b/tests/check/elements/dash_mpd.c
index ad6694cb3..633beb277 100644
--- a/tests/check/elements/dash_mpd.c
+++ b/tests/check/elements/dash_mpd.c
@@ -2488,7 +2488,7 @@ GST_START_TEST (dash_mpdparser_template_parsing)
{"TestMedia$Bandwidth$$$test", "TestMedia2500$test"}, /* Bandwidth identifier */
{"TestMedia$Time$", "TestMedia100"}, /* Time identifier */
{"TestMedia$Time", NULL}, /* Identifier not finished with $ */
- {"Time$Time%d$", "Time100"}, /* usage of %d (no width) */
+ {"Time$Time%d$", NULL}, /* usage of %d (no width) */
{"Time$Time%0d$", "Time100"}, /* usage of format smaller than number of digits */
{"Time$Time%01d$", "Time100"}, /* usage of format smaller than number of digits */
{"Time$Time%05d$", "Time00100"}, /* usage of format bigger than number of digits */
@@ -2503,10 +2503,10 @@ GST_START_TEST (dash_mpdparser_template_parsing)
{"$Bandwidth1$", NULL}, /* incorrect identifier */
{"$Number1$", NULL}, /* incorrect identifier */
{"$RepresentationID%01d$", NULL}, /* incorrect format: RepresentationID does not support formatting */
- {"Time$Time%05u$", "Time00100"}, /* %u format */
- {"Time$Time%05x$", "Time00064"}, /* %x format */
- {"Time$Time%05utest$", "Time00100test"}, /* %u format followed by text */
- {"Time$Time%05xtest$", "Time00064test"}, /* %x format followed by text */
+ {"Time$Time%05u$", NULL}, /* %u format */
+ {"Time$Time%05x$", NULL}, /* %x format */
+ {"Time$Time%05utest$", NULL}, /* %u format followed by text */
+ {"Time$Time%05xtest$", NULL}, /* %x format followed by text */
{"Time$Time%05xtest%$", NULL}, /* second % character in format */
};