diff options
author | Florin Apostol <florin.apostol@oregan.net> | 2015-09-09 12:36:10 +0100 |
---|---|---|
committer | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2015-10-29 11:58:47 +0000 |
commit | 4eea6c3833f5ad3f9154ec67785ae4ea1f64b89b (patch) | |
tree | b951c5b4a74ae200f97b015b0aca9eb8ffe15e1f /tests | |
parent | 933d3674407286df052be993b64db013656f1ecb (diff) | |
download | gstreamer-plugins-bad-4eea6c3833f5ad3f9154ec67785ae4ea1f64b89b.tar.gz |
dashdemux: segment template parsing: added support for %d
Added support for %d in template identifier.
Added testcases for %d, %3d, %0-4d identifier formats.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/elements/dash_mpd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/check/elements/dash_mpd.c b/tests/check/elements/dash_mpd.c index 2ca398b49..ad6694cb3 100644 --- a/tests/check/elements/dash_mpd.c +++ b/tests/check/elements/dash_mpd.c @@ -2488,10 +2488,13 @@ 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%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 */ {"Time$Time%05dtest$", "Time00100test"}, /* usage extra text in format */ + {"Time$Time%3d$", NULL}, /* incorrect format: width does not start with 0 */ + {"Time$Time%0-4d$", NULL}, /* incorrect format: width is not a number */ {"Time$Time%0$", NULL}, /* incorrect format: no d, x or u */ {"Time$Time1%01d$", NULL}, /* incorrect format: does not start with % after identifier */ {"$Bandwidth%/init.mp4v", NULL}, /* incorrect identifier: not finished with $ */ |