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

@ -53,7 +53,7 @@ GST_START_TEST (dash_mpdparser_validsimplempd)
const gchar *xml = const gchar *xml =
"<?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\"> </MPD>"; " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\"> </MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -80,21 +80,21 @@ GST_START_TEST (dash_mpdparser_mpd)
const gchar *xml = const gchar *xml =
"<?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\""
" schemaLocation=\"TestSchemaLocation\"" " schemaLocation=\"TestSchemaLocation\""
" xmlns:xsi=\"TestNamespaceXSI\"" " xmlns:xsi=\"TestNamespaceXSI\""
" xmlns:ext=\"TestNamespaceEXT\"" " xmlns:ext=\"TestNamespaceEXT\""
" id=\"testId\"" " id=\"testId\""
" type=\"static\"" " type=\"static\""
" availabilityStartTime=\"2015-03-24T1:10:50\"" " availabilityStartTime=\"2015-03-24T1:10:50\""
" availabilityEndTime=\"2015-03-24T1:10:50\"" " availabilityEndTime=\"2015-03-24T1:10:50\""
" mediaPresentationDuration=\"P0Y1M2DT12H10M20.5S\"" " mediaPresentationDuration=\"P0Y1M2DT12H10M20.5S\""
" minimumUpdatePeriod=\"P0Y1M2DT12H10M20.5S\"" " minimumUpdatePeriod=\"P0Y1M2DT12H10M20.5S\""
" minBufferTime=\"P0Y1M2DT12H10M20.5S\"" " minBufferTime=\"P0Y1M2DT12H10M20.5S\""
" timeShiftBufferDepth=\"P0Y1M2DT12H10M20.5S\"" " timeShiftBufferDepth=\"P0Y1M2DT12H10M20.5S\""
" suggestedPresentationDelay=\"P0Y1M2DT12H10M20.5S\"" " suggestedPresentationDelay=\"P0Y1M2DT12H10M20.5S\""
" maxSegmentDuration=\"P0Y1M2DT12H10M20.5S\"" " maxSegmentDuration=\"P0Y1M2DT12H10M20.5S\""
" maxSubsegmentDuration=\"P0Y1M2DT12H10M20.5S\"></MPD>"; " maxSubsegmentDuration=\"P0Y1M2DT12H10M20.5S\"></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -164,12 +164,13 @@ GST_START_TEST (dash_mpdparser_programInformation)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -200,9 +201,9 @@ GST_START_TEST (dash_mpdparser_baseURL)
const gchar *xml = const gchar *xml =
"<?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;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -230,8 +231,8 @@ GST_START_TEST (dash_mpdparser_location)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -257,8 +258,8 @@ GST_START_TEST (dash_mpdparser_metrics)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -285,9 +286,11 @@ GST_START_TEST (dash_mpdparser_metrics_range)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -318,8 +321,8 @@ GST_START_TEST (dash_mpdparser_metrics_reporting)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -345,10 +348,11 @@ GST_START_TEST (dash_mpdparser_period)
const gchar *xml = const gchar *xml =
"<?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\""
" duration=\"P0Y1M2DT12H10M20.7654321S\"" " start=\"P0Y1M2DT12H10M20.1234567S\""
" bitstreamSwitching=\"true\"></Period></MPD>"; " duration=\"P0Y1M2DT12H10M20.7654321S\""
" bitstreamSwitching=\"true\"></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -380,9 +384,11 @@ GST_START_TEST (dash_mpdparser_period_baseURL)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -412,11 +418,13 @@ GST_START_TEST (dash_mpdparser_period_segmentBase)
const gchar *xml = const gchar *xml =
"<?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>"
" presentationTimeOffset=\"123456789\"" " <SegmentBase timescale=\"123456\""
" indexRange=\"100-200\"" " presentationTimeOffset=\"123456789\""
" indexRangeExact=\"true\"></SegmentBase></Period></MPD>"; " indexRange=\"100-200\""
" indexRangeExact=\"true\">"
" </SegmentBase></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -449,10 +457,12 @@ GST_START_TEST (dash_mpdparser_period_segmentBase_initialization)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -484,10 +494,12 @@ GST_START_TEST (dash_mpdparser_period_segmentBase_representationIndex)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -518,8 +530,8 @@ GST_START_TEST (dash_mpdparser_period_segmentList)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -548,9 +560,11 @@ GST_START_TEST (dash_mpdparser_period_segmentList_multipleSegmentBaseType)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -583,11 +597,13 @@ GST_START_TEST
const gchar *xml = const gchar *xml =
"<?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>"
" presentationTimeOffset=\"11\"" " <SegmentList timescale=\"10\""
" indexRange=\"20-21\"" " presentationTimeOffset=\"11\""
" indexRangeExact=\"false\"></SegmentList></Period></MPD>"; " indexRange=\"20-21\""
" indexRangeExact=\"false\">"
" </SegmentList></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -624,9 +640,11 @@ GST_START_TEST
const gchar *xml = const gchar *xml =
"<?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 ();
@ -660,9 +678,12 @@ GST_START_TEST
const gchar *xml = const gchar *xml =
"<?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 ();
@ -698,10 +719,12 @@ GST_START_TEST
const gchar *xml = const gchar *xml =
"<?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 ();
@ -734,11 +757,14 @@ GST_START_TEST (dash_mpdparser_period_segmentList_segmentURL)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -772,12 +798,13 @@ GST_START_TEST (dash_mpdparser_period_segmentTemplate)
const gchar *xml = const gchar *xml =
"<?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\""
" initialization=\"TestInitialization\"" " index=\"TestIndex\""
" bitstreamSwitching=\"TestBitstreamSwitching\"" " initialization=\"TestInitialization\""
"></SegmentTemplate></Period></MPD>"; " bitstreamSwitching=\"TestBitstreamSwitching\">"
" </SegmentTemplate></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -810,10 +837,11 @@ GST_START_TEST (dash_mpdparser_period_segmentTemplate_multipleSegmentBaseType)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -846,11 +874,13 @@ GST_START_TEST
const gchar *xml = const gchar *xml =
"<?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>"
" presentationTimeOffset=\"123456789\"" " <SegmentTemplate timescale=\"123456\""
" indexRange=\"100-200\"" " presentationTimeOffset=\"123456789\""
" indexRangeExact=\"true\"></SegmentTemplate></Period></MPD>"; " indexRange=\"100-200\""
" indexRangeExact=\"true\">"
" </SegmentTemplate></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -887,9 +917,11 @@ GST_START_TEST
const gchar *xml = const gchar *xml =
"<?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 ();
@ -923,9 +955,12 @@ GST_START_TEST
const gchar *xml = const gchar *xml =
"<?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 ();
@ -961,10 +996,12 @@ GST_START_TEST
const gchar *xml = const gchar *xml =
"<?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 ();
@ -996,16 +1033,26 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet)
const gchar *xml = const gchar *xml =
"<?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\""
" subsegmentStartsWithSAP=\"6\"" " maxBandwidth=\"200\""
" bitstreamSwitching=\"false\"></AdaptationSet></Period></MPD>"; " minWidth=\"1000\""
" maxWidth=\"2000\""
" minHeight=\"1100\""
" maxHeight=\"2100\""
" minFrameRate=\"25/123\""
" maxFrameRate=\"26\""
" segmentAlignment=\"2\""
" subsegmentAlignment=\"false\""
" subsegmentStartsWithSAP=\"6\""
" bitstreamSwitching=\"false\">"
" </AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1055,20 +1102,23 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_representationBase)
const gchar *xml = const gchar *xml =
"<?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\""
" sar=\"10:20\"" " width=\"100\""
" frameRate=\"30/40\"" " height=\"200\""
" audioSamplingRate=\"TestAudioSamplingRate\"" " sar=\"10:20\""
" mimeType=\"TestMimeType\"" " frameRate=\"30/40\""
" segmentProfiles=\"TestSegmentProfiles\"" " audioSamplingRate=\"TestAudioSamplingRate\""
" codecs=\"TestCodecs\"" " mimeType=\"TestMimeType\""
" maximumSAPPeriod=\"3.4\"" " segmentProfiles=\"TestSegmentProfiles\""
" startWithSAP=\"0\"" " codecs=\"TestCodecs\""
" maxPlayoutRate=\"1.2\"" " maximumSAPPeriod=\"3.4\""
" codingDependency=\"false\"" " startWithSAP=\"0\""
" scanType=\"progressive\"></AdaptationSet></Period></MPD>"; " maxPlayoutRate=\"1.2\""
" codingDependency=\"false\""
" scanType=\"progressive\">"
" </AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1116,10 +1166,12 @@ GST_START_TEST
const gchar *xml = const gchar *xml =
"<?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 ();
@ -1153,10 +1205,12 @@ GST_START_TEST
const gchar *xml = const gchar *xml =
"<?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 ();
@ -1191,10 +1245,12 @@ GST_START_TEST
const gchar *xml = const gchar *xml =
"<?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 ();
@ -1227,10 +1283,12 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_accessibility)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -1261,10 +1319,12 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_role)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -1295,10 +1355,12 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_rating)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -1329,10 +1391,12 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_viewpoint)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -1363,10 +1427,14 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_contentComponent)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -1402,10 +1470,14 @@ GST_START_TEST
const gchar *xml = const gchar *xml =
"<?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 ();
@ -1439,10 +1511,13 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_contentComponent_role)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -1476,10 +1551,14 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_contentComponent_rating)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -1513,10 +1592,14 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_contentComponent_viewpoint)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -1549,10 +1632,12 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_baseURL)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -1584,13 +1669,14 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_segmentBase)
const gchar *xml = const gchar *xml =
"<?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>"
" presentationTimeOffset=\"123456789\"" " <SegmentBase timescale=\"123456\""
" indexRange=\"100-200\"" " presentationTimeOffset=\"123456789\""
" indexRangeExact=\"true\"" " indexRange=\"100-200\""
" ></SegmentBase></AdaptationSet></Period></MPD>"; " indexRangeExact=\"true\">"
" </SegmentBase></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1625,10 +1711,13 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_segmentBase_initialization)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -1662,10 +1751,14 @@ GST_START_TEST
const gchar *xml = const gchar *xml =
"<?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 ();
@ -1698,9 +1791,10 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_segmentList)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -1730,12 +1824,14 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_segmentTemplate)
const gchar *xml = const gchar *xml =
"<?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>"
" initialization=\"TestInitialization\"" " <SegmentTemplate media=\"TestMedia\""
" bitstreamSwitching=\"TestBitstreamSwitching\"" " index=\"TestIndex\""
"></SegmentTemplate></AdaptationSet></Period></MPD>"; " initialization=\"TestInitialization\""
" bitstreamSwitching=\"TestBitstreamSwitching\">"
" </SegmentTemplate></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1769,14 +1865,15 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_representation)
const gchar *xml = const gchar *xml =
"<?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>"
" bandwidth=\"100\"" " <Representation id=\"Test Id\""
" qualityRanking=\"200\"" " bandwidth=\"100\""
" dependencyId=\"one two three\"" " qualityRanking=\"200\""
" mediaStreamStructureId=\"\"" " dependencyId=\"one two three\""
"></Representation></AdaptationSet></Period></MPD>"; " mediaStreamStructureId=\"\">"
" </Representation></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1815,9 +1912,11 @@ GST_START_TEST
const gchar *xml = const gchar *xml =
"<?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 ();
@ -1851,10 +1950,13 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_representation_baseURL)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -1889,13 +1991,16 @@ GST_START_TEST
const gchar *xml = const gchar *xml =
"<?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>"
" dependencyLevel=\"1 2 3\"" " <Representation>"
" bandwidth=\"200\"" " <SubRepresentation level=\"100\""
" contentComponent=\"content1 content2\"" " dependencyLevel=\"1 2 3\""
" ></SubRepresentation></Representation></AdaptationSet></Period></MPD>"; " bandwidth=\"200\""
" contentComponent=\"content1 content2\">"
" </SubRepresentation>"
" </Representation></AdaptationSet></Period></MPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1939,9 +2044,13 @@ GST_START_TEST
const gchar *xml = const gchar *xml =
"<?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 ();
@ -1977,9 +2086,13 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_representation_segmentBase)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -2012,9 +2125,13 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_representation_segmentList)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -2047,9 +2164,13 @@ GST_START_TEST
const gchar *xml = const gchar *xml =
"<?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 ();
@ -2080,8 +2201,8 @@ GST_START_TEST (dash_mpdparser_period_subset)
const gchar *xml = const gchar *xml =
"<?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 ();
@ -2261,7 +2382,7 @@ GST_START_TEST (dash_mpdparser_no_end_tag)
const gchar *xml = const gchar *xml =
"<?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\"> </NPD>"; " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\"> </NPD>";
gboolean ret; gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new (); GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -2305,12 +2426,12 @@ GST_START_TEST (dash_mpdparser_wrong_period_duration_inferred_from_next_period)
const gchar *xml = const gchar *xml =
"<?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\""
" 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 ();
@ -2350,10 +2471,10 @@ GST_START_TEST
const gchar *xml = const gchar *xml =
"<?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\""
" 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 ();