diff options
Diffstat (limited to 'tests/check')
-rw-r--r-- | tests/check/elements/dash_mpd.c | 84 |
1 files changed, 63 insertions, 21 deletions
diff --git a/tests/check/elements/dash_mpd.c b/tests/check/elements/dash_mpd.c index 66b6bd7f2..05d971185 100644 --- a/tests/check/elements/dash_mpd.c +++ b/tests/check/elements/dash_mpd.c @@ -2567,7 +2567,9 @@ GST_START_TEST (dash_mpdparser_various_duration_formats) ret = gst_mpd_parse (mpdclient, xml, (gint) strlen (xml)); assert_equals_int (ret, TRUE); - ret = gst_mpd_client_setup_media_presentation (mpdclient); + ret = + gst_mpd_client_setup_media_presentation (mpdclient, GST_CLOCK_TIME_NONE, + -1, NULL); assert_equals_int (ret, TRUE); periodNode = @@ -2643,7 +2645,9 @@ GST_START_TEST (dash_mpdparser_setup_media_presentation) assert_equals_int (ret, TRUE); /* process the xml data */ - ret = gst_mpd_client_setup_media_presentation (mpdclient); + ret = + gst_mpd_client_setup_media_presentation (mpdclient, GST_CLOCK_TIME_NONE, + -1, NULL); assert_equals_int (ret, TRUE); gst_mpd_client_free (mpdclient); @@ -2678,7 +2682,9 @@ GST_START_TEST (dash_mpdparser_setup_streaming) assert_equals_int (ret, TRUE); /* process the xml data */ - ret = gst_mpd_client_setup_media_presentation (mpdclient); + ret = + gst_mpd_client_setup_media_presentation (mpdclient, GST_CLOCK_TIME_NONE, + -1, NULL); assert_equals_int (ret, TRUE); /* get the first adaptation set of the first period */ @@ -2725,7 +2731,9 @@ GST_START_TEST (dash_mpdparser_period_selection) fail_unless (mpdclient->periods == NULL); /* process the xml data */ - ret = gst_mpd_client_setup_media_presentation (mpdclient); + ret = + gst_mpd_client_setup_media_presentation (mpdclient, GST_CLOCK_TIME_NONE, + -1, NULL); assert_equals_int (ret, TRUE); /* check the periods */ @@ -2791,7 +2799,9 @@ GST_START_TEST (dash_mpdparser_get_period_at_time) assert_equals_int (ret, TRUE); /* process the xml data */ - ret = gst_mpd_client_setup_media_presentation (mpdclient); + ret = + gst_mpd_client_setup_media_presentation (mpdclient, GST_CLOCK_TIME_NONE, + -1, NULL); assert_equals_int (ret, TRUE); /* request period for a time before availabilityStartTime, expect period index 0 */ @@ -2858,7 +2868,9 @@ GST_START_TEST (dash_mpdparser_adaptationSet_handling) assert_equals_int (ret, TRUE); /* process the xml data */ - ret = gst_mpd_client_setup_media_presentation (mpdclient); + ret = + gst_mpd_client_setup_media_presentation (mpdclient, GST_CLOCK_TIME_NONE, + -1, NULL); assert_equals_int (ret, TRUE); /* period0 has 1 adaptation set */ @@ -2920,7 +2932,9 @@ GST_START_TEST (dash_mpdparser_representation_selection) assert_equals_int (ret, TRUE); /* process the xml data */ - ret = gst_mpd_client_setup_media_presentation (mpdclient); + ret = + gst_mpd_client_setup_media_presentation (mpdclient, GST_CLOCK_TIME_NONE, + -1, NULL); assert_equals_int (ret, TRUE); adaptationSets = gst_mpd_client_get_adaptation_sets (mpdclient); @@ -2993,7 +3007,9 @@ GST_START_TEST (dash_mpdparser_activeStream_selection) assert_equals_int (ret, TRUE); /* process the xml data */ - ret = gst_mpd_client_setup_media_presentation (mpdclient); + ret = + gst_mpd_client_setup_media_presentation (mpdclient, GST_CLOCK_TIME_NONE, + -1, NULL); assert_equals_int (ret, TRUE); /* get the list of adaptation sets of the first period */ @@ -3093,7 +3109,9 @@ GST_START_TEST (dash_mpdparser_activeStream_parameters) assert_equals_int (ret, TRUE); /* process the xml data */ - ret = gst_mpd_client_setup_media_presentation (mpdclient); + ret = + gst_mpd_client_setup_media_presentation (mpdclient, GST_CLOCK_TIME_NONE, + -1, NULL); assert_equals_int (ret, TRUE); /* get the list of adaptation sets of the first period */ @@ -3177,7 +3195,9 @@ GST_START_TEST (dash_mpdparser_get_audio_languages) assert_equals_int (ret, TRUE); /* process the xml data */ - ret = gst_mpd_client_setup_media_presentation (mpdclient); + ret = + gst_mpd_client_setup_media_presentation (mpdclient, GST_CLOCK_TIME_NONE, + -1, NULL); assert_equals_int (ret, TRUE); /* get the list of adaptation sets of the first period */ @@ -3226,7 +3246,9 @@ setup_mpd_client (const gchar * xml) assert_equals_int (ret, TRUE); /* process the xml data */ - ret = gst_mpd_client_setup_media_presentation (mpdclient); + ret = + gst_mpd_client_setup_media_presentation (mpdclient, GST_CLOCK_TIME_NONE, + -1, NULL); assert_equals_int (ret, TRUE); /* get the list of adaptation sets of the first period */ @@ -3451,7 +3473,9 @@ GST_START_TEST (dash_mpdparser_get_streamPresentationOffset) assert_equals_int (ret, TRUE); /* process the xml data */ - ret = gst_mpd_client_setup_media_presentation (mpdclient); + ret = + gst_mpd_client_setup_media_presentation (mpdclient, GST_CLOCK_TIME_NONE, + -1, NULL); assert_equals_int (ret, TRUE); /* get the list of adaptation sets of the first period */ @@ -3523,7 +3547,9 @@ GST_START_TEST (dash_mpdparser_segments) assert_equals_int (ret, TRUE); /* process the xml data */ - ret = gst_mpd_client_setup_media_presentation (mpdclient); + ret = + gst_mpd_client_setup_media_presentation (mpdclient, GST_CLOCK_TIME_NONE, + -1, NULL); assert_equals_int (ret, TRUE); /* get the list of adaptation sets of the first period */ @@ -3664,7 +3690,9 @@ GST_START_TEST (dash_mpdparser_headers) assert_equals_int (ret, TRUE); /* process the xml data */ - ret = gst_mpd_client_setup_media_presentation (mpdclient); + ret = + gst_mpd_client_setup_media_presentation (mpdclient, GST_CLOCK_TIME_NONE, + -1, NULL); assert_equals_int (ret, TRUE); /* get the list of adaptation sets of the first period */ @@ -3738,7 +3766,9 @@ GST_START_TEST (dash_mpdparser_fragments) assert_equals_int (ret, TRUE); /* process the xml data */ - ret = gst_mpd_client_setup_media_presentation (mpdclient); + ret = + gst_mpd_client_setup_media_presentation (mpdclient, GST_CLOCK_TIME_NONE, + -1, NULL); assert_equals_int (ret, TRUE); /* get the list of adaptation sets of the first period */ @@ -3885,7 +3915,9 @@ GST_START_TEST (dash_mpdparser_inherited_segmentURL) assert_equals_int (ret, TRUE); /* process the xml data */ - ret = gst_mpd_client_setup_media_presentation (mpdclient); + ret = + gst_mpd_client_setup_media_presentation (mpdclient, GST_CLOCK_TIME_NONE, + -1, NULL); assert_equals_int (ret, TRUE); /* get the list of adaptation sets of the first period */ @@ -3990,7 +4022,9 @@ GST_START_TEST (dash_mpdparser_segment_list) assert_equals_int (ret, TRUE); /* process the xml data */ - ret = gst_mpd_client_setup_media_presentation (mpdclient); + ret = + gst_mpd_client_setup_media_presentation (mpdclient, GST_CLOCK_TIME_NONE, + -1, NULL); assert_equals_int (ret, TRUE); /* get the list of adaptation sets of the first period */ @@ -4066,7 +4100,9 @@ GST_START_TEST (dash_mpdparser_segment_template) assert_equals_int (ret, TRUE); /* process the xml data */ - ret = gst_mpd_client_setup_media_presentation (mpdclient); + ret = + gst_mpd_client_setup_media_presentation (mpdclient, GST_CLOCK_TIME_NONE, + -1, NULL); assert_equals_int (ret, TRUE); /* get the list of adaptation sets of the first period */ @@ -4167,7 +4203,9 @@ GST_START_TEST (dash_mpdparser_segment_timeline) assert_equals_int (ret, TRUE); /* process the xml data */ - ret = gst_mpd_client_setup_media_presentation (mpdclient); + ret = + gst_mpd_client_setup_media_presentation (mpdclient, GST_CLOCK_TIME_NONE, + -1, NULL); assert_equals_int (ret, TRUE); /* get the list of adaptation sets of the first period */ @@ -4343,7 +4381,9 @@ GST_START_TEST (dash_mpdparser_wrong_period_duration_inferred_from_next_period) fail_unless (mpdclient->periods == NULL); /* process the xml data */ - ret = gst_mpd_client_setup_media_presentation (mpdclient); + ret = + gst_mpd_client_setup_media_presentation (mpdclient, GST_CLOCK_TIME_NONE, + -1, NULL); assert_equals_int (ret, TRUE); /* Period0 should be present */ @@ -4388,7 +4428,9 @@ GST_START_TEST /* process the xml data * should fail due to wrong duration in Period0 (start > mediaPresentationDuration) */ - ret = gst_mpd_client_setup_media_presentation (mpdclient); + ret = + gst_mpd_client_setup_media_presentation (mpdclient, GST_CLOCK_TIME_NONE, + -1, NULL); assert_equals_int (ret, FALSE); gst_mpd_client_free (mpdclient); |