dashdemux: tests: added indentation in xml strings to improve readability

https://bugzilla.gnome.org/show_bug.cgi?id=752027
This commit is contained in:
Florin Apostol 2015-07-06 12:08:52 +01:00 committed by Sebastian Dröge
parent cc9885ef4e
commit 57042af9d6

View file

@ -165,11 +165,12 @@ GST_START_TEST (dash_mpdparser_programInformation)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<ProgramInformation lang=\"en\"" " <ProgramInformation lang=\"en\""
" moreInformationURL=\"TestMoreInformationUrl\">" " moreInformationURL=\"TestMoreInformationUrl\">"
"<Title>TestTitle</Title>" " <Title>TestTitle</Title>"
"<Source>TestSource</Source>" " <Source>TestSource</Source>"
"<Copyright>TestCopyright</Copyright> </ProgramInformation> </MPD>"; " <Copyright>TestCopyright</Copyright>"
" </ProgramInformation> </MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -201,7 +202,7 @@ GST_START_TEST (dash_mpdparser_baseURL)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<BaseURL serviceLocation=\"TestServiceLocation\"" " <BaseURL serviceLocation=\"TestServiceLocation\""
" byteRange=\"TestByteRange\">TestBaseURL</BaseURL></MPD>"; " byteRange=\"TestByteRange\">TestBaseURL</BaseURL></MPD>";
gboolean ret; gboolean ret;
@ -231,7 +232,7 @@ GST_START_TEST (dash_mpdparser_location)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Location>TestLocation</Location></MPD>"; " <Location>TestLocation</Location></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -258,7 +259,7 @@ GST_START_TEST (dash_mpdparser_metrics)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Metrics metrics=\"TestMetric\"></Metrics></MPD>"; " <Metrics metrics=\"TestMetric\"></Metrics></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -286,8 +287,10 @@ GST_START_TEST (dash_mpdparser_metrics_range)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Metrics><Range starttime=\"P0Y1M2DT12H10M20.5S\"" " <Metrics>"
" duration=\"P0Y1M2DT12H10M20.1234567S\"></Range></Metrics></MPD>"; " <Range starttime=\"P0Y1M2DT12H10M20.5S\""
" duration=\"P0Y1M2DT12H10M20.1234567S\">"
" </Range></Metrics></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -319,7 +322,7 @@ GST_START_TEST (dash_mpdparser_metrics_reporting)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Metrics><Reporting></Reporting></Metrics></MPD>"; " <Metrics><Reporting></Reporting></Metrics></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -346,7 +349,8 @@ GST_START_TEST (dash_mpdparser_period)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period id=\"TestId\" start=\"P0Y1M2DT12H10M20.1234567S\"" " <Period id=\"TestId\""
" start=\"P0Y1M2DT12H10M20.1234567S\""
" duration=\"P0Y1M2DT12H10M20.7654321S\"" " duration=\"P0Y1M2DT12H10M20.7654321S\""
" bitstreamSwitching=\"true\"></Period></MPD>"; " bitstreamSwitching=\"true\"></Period></MPD>";
@ -381,8 +385,10 @@ GST_START_TEST (dash_mpdparser_period_baseURL)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><BaseURL serviceLocation=\"TestServiceLocation\"" " <Period>"
" byteRange=\"TestByteRange\">TestBaseURL</BaseURL></Period></MPD>"; " <BaseURL serviceLocation=\"TestServiceLocation\""
" byteRange=\"TestByteRange\">TestBaseURL</BaseURL>"
" </Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -413,10 +419,12 @@ GST_START_TEST (dash_mpdparser_period_segmentBase)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentBase timescale=\"123456\"" " <Period>"
" <SegmentBase timescale=\"123456\""
" presentationTimeOffset=\"123456789\"" " presentationTimeOffset=\"123456789\""
" indexRange=\"100-200\"" " indexRange=\"100-200\""
" indexRangeExact=\"true\"></SegmentBase></Period></MPD>"; " indexRangeExact=\"true\">"
" </SegmentBase></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -450,9 +458,11 @@ GST_START_TEST (dash_mpdparser_period_segmentBase_initialization)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentBase><Initialisation" " <Period>"
" sourceURL=\"TestSourceURL\"" " <SegmentBase>"
" range=\"100-200\"></Initialisation></SegmentBase></Period></MPD>"; " <Initialisation sourceURL=\"TestSourceURL\""
" range=\"100-200\">"
" </Initialisation></SegmentBase></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -485,9 +495,11 @@ GST_START_TEST (dash_mpdparser_period_segmentBase_representationIndex)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentBase><RepresentationIndex" " <Period>"
" sourceURL=\"TestSourceURL\"" " <SegmentBase>"
" range=\"100-200\"></RepresentationIndex></SegmentBase></Period></MPD>"; " <RepresentationIndex sourceURL=\"TestSourceURL\""
" range=\"100-200\">"
" </RepresentationIndex></SegmentBase></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -519,7 +531,7 @@ GST_START_TEST (dash_mpdparser_period_segmentList)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentList></SegmentList></Period></MPD>"; " <Period><SegmentList></SegmentList></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -549,8 +561,10 @@ GST_START_TEST (dash_mpdparser_period_segmentList_multipleSegmentBaseType)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentList duration=\"10\" startNumber=\"11\">" " <Period>"
"</SegmentList></Period></MPD>"; " <SegmentList duration=\"10\""
" startNumber=\"11\">"
" </SegmentList></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -584,10 +598,12 @@ GST_START_TEST
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentList timescale=\"10\"" " <Period>"
" <SegmentList timescale=\"10\""
" presentationTimeOffset=\"11\"" " presentationTimeOffset=\"11\""
" indexRange=\"20-21\"" " indexRange=\"20-21\""
" indexRangeExact=\"false\"></SegmentList></Period></MPD>"; " indexRangeExact=\"false\">"
" </SegmentList></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -625,8 +641,10 @@ GST_START_TEST
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentList><SegmentTimeline " " <Period>"
" ></SegmentTimeline></SegmentList></Period></MPD>"; " <SegmentList>"
" <SegmentTimeline>"
" </SegmentTimeline></SegmentList></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -661,8 +679,11 @@ GST_START_TEST
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentList><SegmentTimeline><S t=\"1\" d=\"2\" r=\"3\">" " <Period>"
"</S></SegmentTimeline></SegmentList></Period></MPD>"; " <SegmentList>"
" <SegmentTimeline>"
" <S t=\"1\" d=\"2\" r=\"3\">"
" </S></SegmentTimeline></SegmentList></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -699,9 +720,11 @@ GST_START_TEST
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentList><BitstreamSwitching" " <Period>"
" sourceURL=\"TestSourceURL\" range=\"100-200\"" " <SegmentList>"
"></BitstreamSwitching></SegmentList></Period></MPD>"; " <BitstreamSwitching sourceURL=\"TestSourceURL\""
" range=\"100-200\">"
" </BitstreamSwitching></SegmentList></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -735,10 +758,13 @@ GST_START_TEST (dash_mpdparser_period_segmentList_segmentURL)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentList><SegmentURL" " <Period>"
" media=\"TestMedia\" mediaRange=\"100-200\"" " <SegmentList>"
" index=\"TestIndex\" indexRange=\"300-400\"" " <SegmentURL media=\"TestMedia\""
"></SegmentURL></SegmentList></Period></MPD>"; " mediaRange=\"100-200\""
" index=\"TestIndex\""
" indexRange=\"300-400\">"
" </SegmentURL></SegmentList></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -773,11 +799,12 @@ GST_START_TEST (dash_mpdparser_period_segmentTemplate)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentTemplate" " <Period>"
" media=\"TestMedia\" index=\"TestIndex\"" " <SegmentTemplate media=\"TestMedia\""
" index=\"TestIndex\""
" initialization=\"TestInitialization\"" " initialization=\"TestInitialization\""
" bitstreamSwitching=\"TestBitstreamSwitching\"" " bitstreamSwitching=\"TestBitstreamSwitching\">"
"></SegmentTemplate></Period></MPD>"; " </SegmentTemplate></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -811,9 +838,10 @@ GST_START_TEST (dash_mpdparser_period_segmentTemplate_multipleSegmentBaseType)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentTemplate" " <Period>"
" duration=\"10\" startNumber=\"11\"" " <SegmentTemplate duration=\"10\""
"></SegmentTemplate></Period></MPD>"; " startNumber=\"11\">"
" </SegmentTemplate></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -847,10 +875,12 @@ GST_START_TEST
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentTemplate timescale=\"123456\"" " <Period>"
" <SegmentTemplate timescale=\"123456\""
" presentationTimeOffset=\"123456789\"" " presentationTimeOffset=\"123456789\""
" indexRange=\"100-200\"" " indexRange=\"100-200\""
" indexRangeExact=\"true\"></SegmentTemplate></Period></MPD>"; " indexRangeExact=\"true\">"
" </SegmentTemplate></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -888,8 +918,10 @@ GST_START_TEST
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentTemplate><SegmentTimeline>" " <Period>"
"</SegmentTimeline></SegmentTemplate></Period></MPD>"; " <SegmentTemplate>"
" <SegmentTimeline>"
" </SegmentTimeline></SegmentTemplate></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -924,8 +956,11 @@ GST_START_TEST
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentTemplate><SegmentTimeline><S t=\"1\" d=\"2\" r=\"3\">" " <Period>"
"</S></SegmentTimeline></SegmentTemplate></Period></MPD>"; " <SegmentTemplate>"
" <SegmentTimeline>"
" <S t=\"1\" d=\"2\" r=\"3\">"
" </S></SegmentTimeline></SegmentTemplate></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -962,9 +997,11 @@ GST_START_TEST
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentTemplate><BitstreamSwitching" " <Period>"
" sourceURL=\"TestSourceURL\" range=\"100-200\"" " <SegmentTemplate>"
"></BitstreamSwitching></SegmentTemplate></Period></MPD>"; " <BitstreamSwitching sourceURL=\"TestSourceURL\""
" range=\"100-200\">"
" </BitstreamSwitching></SegmentTemplate></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -997,15 +1034,25 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet id=\"7\" group=\"8\" lang=\"en\"" " <Period>"
" contentType=\"TestContentType\" par=\"4:3\"" " <AdaptationSet id=\"7\""
" minBandwidth=\"100\" maxBandwidth=\"200\"" " group=\"8\""
" minWidth=\"1000\" maxWidth=\"2000\"" " lang=\"en\""
" minHeight=\"1100\" maxHeight=\"2100\"" " contentType=\"TestContentType\""
" minFrameRate=\"25/123\" maxFrameRate=\"26\"" " par=\"4:3\""
" segmentAlignment=\"2\" subsegmentAlignment=\"false\"" " minBandwidth=\"100\""
" maxBandwidth=\"200\""
" minWidth=\"1000\""
" maxWidth=\"2000\""
" minHeight=\"1100\""
" maxHeight=\"2100\""
" minFrameRate=\"25/123\""
" maxFrameRate=\"26\""
" segmentAlignment=\"2\""
" subsegmentAlignment=\"false\""
" subsegmentStartsWithSAP=\"6\"" " subsegmentStartsWithSAP=\"6\""
" bitstreamSwitching=\"false\"></AdaptationSet></Period></MPD>"; " bitstreamSwitching=\"false\">"
" </AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1056,8 +1103,10 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_representationBase)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
" <Period><AdaptationSet profiles=\"TestProfiles\"" " <Period>"
" width=\"100\" height=\"200\"" " <AdaptationSet profiles=\"TestProfiles\""
" width=\"100\""
" height=\"200\""
" sar=\"10:20\"" " sar=\"10:20\""
" frameRate=\"30/40\"" " frameRate=\"30/40\""
" audioSamplingRate=\"TestAudioSamplingRate\"" " audioSamplingRate=\"TestAudioSamplingRate\""
@ -1068,7 +1117,8 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_representationBase)
" startWithSAP=\"0\"" " startWithSAP=\"0\""
" maxPlayoutRate=\"1.2\"" " maxPlayoutRate=\"1.2\""
" codingDependency=\"false\"" " codingDependency=\"false\""
" scanType=\"progressive\"></AdaptationSet></Period></MPD>"; " scanType=\"progressive\">"
" </AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1117,9 +1167,11 @@ GST_START_TEST
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><FramePacking" " <Period>"
" schemeIdUri=\"TestSchemeIdUri\" value=\"TestValue\"" " <AdaptationSet>"
" ></FramePacking></AdaptationSet></Period></MPD>"; " <FramePacking schemeIdUri=\"TestSchemeIdUri\""
" value=\"TestValue\">"
" </FramePacking></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1154,9 +1206,11 @@ GST_START_TEST
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><AudioChannelConfiguration" " <Period>"
" schemeIdUri=\"TestSchemeIdUri\" value=\"TestValue\"" " <AdaptationSet>"
" ></AudioChannelConfiguration></AdaptationSet></Period></MPD>"; " <AudioChannelConfiguration schemeIdUri=\"TestSchemeIdUri\""
" value=\"TestValue\">"
" </AudioChannelConfiguration></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1192,9 +1246,11 @@ GST_START_TEST
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><ContentProtection" " <Period>"
" schemeIdUri=\"TestSchemeIdUri\" value=\"TestValue\"" " <AdaptationSet>"
" ></ContentProtection></AdaptationSet></Period></MPD>"; " <ContentProtection schemeIdUri=\"TestSchemeIdUri\""
" value=\"TestValue\">"
" </ContentProtection></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1228,9 +1284,11 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_accessibility)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><Accessibility" " <Period>"
" schemeIdUri=\"TestSchemeIdUri\" value=\"TestValue\"" " <AdaptationSet>"
" ></Accessibility></AdaptationSet></Period></MPD>"; " <Accessibility schemeIdUri=\"TestSchemeIdUri\""
" value=\"TestValue\">"
" </Accessibility></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1262,9 +1320,11 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_role)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><Role" " <Period>"
" schemeIdUri=\"TestSchemeIdUri\" value=\"TestValue\"" " <AdaptationSet>"
" ></Role></AdaptationSet></Period></MPD>"; " <Role schemeIdUri=\"TestSchemeIdUri\""
" value=\"TestValue\">"
" </Role></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1296,9 +1356,11 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_rating)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><Rating" " <Period>"
" schemeIdUri=\"TestSchemeIdUri\" value=\"TestValue\"" " <AdaptationSet>"
" ></Rating></AdaptationSet></Period></MPD>"; " <Rating schemeIdUri=\"TestSchemeIdUri\""
" value=\"TestValue\">"
" </Rating></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1330,9 +1392,11 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_viewpoint)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><Viewpoint" " <Period>"
" schemeIdUri=\"TestSchemeIdUri\" value=\"TestValue\"" " <AdaptationSet>"
" ></Viewpoint></AdaptationSet></Period></MPD>"; " <Viewpoint schemeIdUri=\"TestSchemeIdUri\""
" value=\"TestValue\">"
" </Viewpoint></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1364,9 +1428,13 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_contentComponent)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><ContentComponent" " <Period>"
" id=\"1\" lang=\"en\" contentType=\"TestContentType\" par=\"10:20\"" " <AdaptationSet>"
" ></ContentComponent></AdaptationSet></Period></MPD>"; " <ContentComponent id=\"1\""
" lang=\"en\""
" contentType=\"TestContentType\""
" par=\"10:20\">"
" </ContentComponent></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1403,9 +1471,13 @@ GST_START_TEST
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><ContentComponent><Accessibility" " <Period>"
" schemeIdUri=\"TestSchemeIdUri\" value=\"TestValue\"" " <AdaptationSet>"
" ></Accessibility></ContentComponent></AdaptationSet></Period></MPD>"; " <ContentComponent>"
" <Accessibility schemeIdUri=\"TestSchemeIdUri\""
" value=\"TestValue\">"
" </Accessibility>"
" </ContentComponent></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1440,9 +1512,12 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_contentComponent_role)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><ContentComponent><Role" " <Period>"
" schemeIdUri=\"TestSchemeIdUri\" value=\"TestValue\"" " <AdaptationSet>"
" ></Role></ContentComponent></AdaptationSet></Period></MPD>"; " <ContentComponent>"
" <Role schemeIdUri=\"TestSchemeIdUri\""
" value=\"TestValue\">"
" </Role></ContentComponent></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1477,9 +1552,13 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_contentComponent_rating)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><ContentComponent><Rating" " <Period>"
" schemeIdUri=\"TestSchemeIdUri\" value=\"TestValue\"" " <AdaptationSet>"
" ></Rating></ContentComponent></AdaptationSet></Period></MPD>"; " <ContentComponent>"
" <Rating schemeIdUri=\"TestSchemeIdUri\""
" value=\"TestValue\">"
" </Rating>"
" </ContentComponent></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1514,9 +1593,13 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_contentComponent_viewpoint)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><ContentComponent><Viewpoint" " <Period>"
" schemeIdUri=\"TestSchemeIdUri\" value=\"TestValue\"" " <AdaptationSet>"
" ></Viewpoint></ContentComponent></AdaptationSet></Period></MPD>"; " <ContentComponent>"
" <Viewpoint schemeIdUri=\"TestSchemeIdUri\""
" value=\"TestValue\">"
" </Viewpoint>"
" </ContentComponent></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1550,9 +1633,11 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_baseURL)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><BaseURL" " <Period>"
" serviceLocation=\"TestServiceLocation\" byteRange=\"TestByteRange\"" " <AdaptationSet>"
" >TestBaseURL</BaseURL></AdaptationSet></Period></MPD>"; " <BaseURL serviceLocation=\"TestServiceLocation\""
" byteRange=\"TestByteRange\">TestBaseURL</BaseURL>"
" </AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1585,12 +1670,13 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_segmentBase)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><SegmentBase" " <Period>"
" timescale=\"123456\"" " <AdaptationSet>"
" <SegmentBase timescale=\"123456\""
" presentationTimeOffset=\"123456789\"" " presentationTimeOffset=\"123456789\""
" indexRange=\"100-200\"" " indexRange=\"100-200\""
" indexRangeExact=\"true\"" " indexRangeExact=\"true\">"
" ></SegmentBase></AdaptationSet></Period></MPD>"; " </SegmentBase></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1626,9 +1712,12 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_segmentBase_initialization)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><SegmentBase><Initialisation" " <Period>"
" sourceURL=\"TestSourceURL\" range=\"100-200\"" " <AdaptationSet>"
"></Initialisation></SegmentBase></AdaptationSet></Period></MPD>"; " <SegmentBase>"
" <Initialisation sourceURL=\"TestSourceURL\""
" range=\"100-200\">"
" </Initialisation></SegmentBase></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1663,9 +1752,13 @@ GST_START_TEST
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><SegmentBase><RepresentationIndex" " <Period>"
" sourceURL=\"TestSourceURL\" range=\"100-200\"" " <AdaptationSet>"
"></RepresentationIndex></SegmentBase></AdaptationSet></Period></MPD>"; " <SegmentBase>"
" <RepresentationIndex sourceURL=\"TestSourceURL\""
" range=\"100-200\">"
" </RepresentationIndex>"
" </SegmentBase></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1699,8 +1792,9 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_segmentList)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><SegmentList" " <Period>"
"></SegmentList></AdaptationSet></Period></MPD>"; " <AdaptationSet>"
" <SegmentList></SegmentList></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1731,11 +1825,13 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_segmentTemplate)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><SegmentTemplate" " <Period>"
" media=\"TestMedia\" index=\"TestIndex\"" " <AdaptationSet>"
" <SegmentTemplate media=\"TestMedia\""
" index=\"TestIndex\""
" initialization=\"TestInitialization\"" " initialization=\"TestInitialization\""
" bitstreamSwitching=\"TestBitstreamSwitching\"" " bitstreamSwitching=\"TestBitstreamSwitching\">"
"></SegmentTemplate></AdaptationSet></Period></MPD>"; " </SegmentTemplate></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1770,13 +1866,14 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_representation)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><Representation" " <Period>"
" id=\"Test Id\"" " <AdaptationSet>"
" <Representation id=\"Test Id\""
" bandwidth=\"100\"" " bandwidth=\"100\""
" qualityRanking=\"200\"" " qualityRanking=\"200\""
" dependencyId=\"one two three\"" " dependencyId=\"one two three\""
" mediaStreamStructureId=\"\"" " mediaStreamStructureId=\"\">"
"></Representation></AdaptationSet></Period></MPD>"; " </Representation></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1816,8 +1913,10 @@ GST_START_TEST
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><Representation" " <Period>"
"></Representation></AdaptationSet></Period></MPD>"; " <AdaptationSet>"
" <Representation>"
" </Representation></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1852,9 +1951,12 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_representation_baseURL)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><Representation><BaseURL" " <Period>"
" serviceLocation=\"TestServiceLocation\" byteRange=\"TestByteRange\"" " <AdaptationSet>"
" >TestBaseURL</BaseURL></Representation></AdaptationSet></Period></MPD>"; " <Representation>"
" <BaseURL serviceLocation=\"TestServiceLocation\""
" byteRange=\"TestByteRange\">TestBaseURL</BaseURL>"
" </Representation></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1890,12 +1992,15 @@ GST_START_TEST
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><Representation><SubRepresentation" " <Period>"
" level=\"100\"" " <AdaptationSet>"
" <Representation>"
" <SubRepresentation level=\"100\""
" dependencyLevel=\"1 2 3\"" " dependencyLevel=\"1 2 3\""
" bandwidth=\"200\"" " bandwidth=\"200\""
" contentComponent=\"content1 content2\"" " contentComponent=\"content1 content2\">"
" ></SubRepresentation></Representation></AdaptationSet></Period></MPD>"; " </SubRepresentation>"
" </Representation></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1940,8 +2045,12 @@ GST_START_TEST
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><Representation><SubRepresentation" " <Period>"
" ></SubRepresentation></Representation></AdaptationSet></Period></MPD>"; " <AdaptationSet>"
" <Representation>"
" <SubRepresentation>"
" </SubRepresentation>"
" </Representation></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1978,8 +2087,12 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_representation_segmentBase)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><Representation><SegmentBase" " <Period>"
" ></SegmentBase></Representation></AdaptationSet></Period></MPD>"; " <AdaptationSet>"
" <Representation>"
" <SegmentBase>"
" </SegmentBase>"
" </Representation></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -2013,8 +2126,12 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_representation_segmentList)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><Representation><SegmentList" " <Period>"
" ></SegmentList></Representation></AdaptationSet></Period></MPD>"; " <AdaptationSet>"
" <Representation>"
" <SegmentList>"
" </SegmentList>"
" </Representation></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -2048,8 +2165,12 @@ GST_START_TEST
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><Representation><SegmentTemplate" " <Period>"
" ></SegmentTemplate></Representation></AdaptationSet></Period></MPD>"; " <AdaptationSet>"
" <Representation>"
" <SegmentTemplate>"
" </SegmentTemplate>"
" </Representation></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -2081,7 +2202,7 @@ GST_START_TEST (dash_mpdparser_period_subset)
"<?xml version=\"1.0\"?>" "<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"" "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><Subset contains=\"1 2 3\"></Subset></Period></MPD>"; " <Period><Subset contains=\"1 2 3\"></Subset></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -2308,9 +2429,9 @@ GST_START_TEST (dash_mpdparser_wrong_period_duration_inferred_from_next_period)
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\"" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\""
" availabilityStartTime=\"2015-03-24T0:0:0\"" " availabilityStartTime=\"2015-03-24T0:0:0\""
" mediaPresentationDuration=\"P0Y0M0DT3H3M30S\">" " mediaPresentationDuration=\"P0Y0M0DT3H3M30S\">"
"<Period id=\"Period0\" duration=\"P0Y0M0DT1H1M0S\"></Period>" " <Period id=\"Period0\" duration=\"P0Y0M0DT1H1M0S\"></Period>"
"<Period id=\"Period1\"></Period>" " <Period id=\"Period1\"></Period>"
"<Period id=\"Period2\" start=\"P0Y0M0DT0H0M10S\"></Period></MPD>"; " <Period id=\"Period2\" start=\"P0Y0M0DT0H0M10S\"></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -2353,7 +2474,7 @@ GST_START_TEST
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\"" " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\""
" availabilityStartTime=\"2015-03-24T0:0:0\"" " availabilityStartTime=\"2015-03-24T0:0:0\""
" mediaPresentationDuration=\"P0Y0M0DT3H3M30S\">" " mediaPresentationDuration=\"P0Y0M0DT3H3M30S\">"
"<Period id=\"Period0\" start=\"P0Y0M0DT4H0M0S\"></Period></MPD>"; " <Period id=\"Period0\" start=\"P0Y0M0DT4H0M0S\"></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();