mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
dash: Fix build of unit test
This commit is contained in:
parent
4734b10c6f
commit
268c18054d
1 changed files with 8 additions and 4 deletions
|
@ -3162,19 +3162,23 @@ GST_START_TEST (dash_mpdparser_representation_selection)
|
|||
assert_equals_int (represendationIndex, 1);
|
||||
|
||||
represendationIndex =
|
||||
gst_mpdparser_get_rep_idx_with_max_bandwidth (representations, 0);
|
||||
gst_mpdparser_get_rep_idx_with_max_bandwidth (representations, 0, 0, 0, 0,
|
||||
1);
|
||||
assert_equals_int (represendationIndex, 1);
|
||||
|
||||
represendationIndex =
|
||||
gst_mpdparser_get_rep_idx_with_max_bandwidth (representations, 100000);
|
||||
gst_mpdparser_get_rep_idx_with_max_bandwidth (representations, 100000, 0,
|
||||
0, 0, 1);
|
||||
assert_equals_int (represendationIndex, -1);
|
||||
|
||||
represendationIndex =
|
||||
gst_mpdparser_get_rep_idx_with_max_bandwidth (representations, 300000);
|
||||
gst_mpdparser_get_rep_idx_with_max_bandwidth (representations, 300000, 0,
|
||||
0, 0, 1);
|
||||
assert_equals_int (represendationIndex, 1);
|
||||
|
||||
represendationIndex =
|
||||
gst_mpdparser_get_rep_idx_with_max_bandwidth (representations, 500000);
|
||||
gst_mpdparser_get_rep_idx_with_max_bandwidth (representations, 500000, 0,
|
||||
0, 0, 1);
|
||||
assert_equals_int (represendationIndex, 0);
|
||||
|
||||
gst_mpd_client_free (mpdclient);
|
||||
|
|
Loading…
Reference in a new issue