diff options
author | Seungha Yang <sh.yang@lge.com> | 2017-01-27 08:38:28 +0900 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-01-31 13:23:34 +0200 |
commit | d59571e80e3cee7cf027782bbb64a8a95544879b (patch) | |
tree | 3672c4449be2475af031e9b3dbe54346283f1a85 /tests | |
parent | b5cf96fc35f78f4435368331859568475205ea0c (diff) | |
download | gstreamer-plugins-bad-d59571e80e3cee7cf027782bbb64a8a95544879b.tar.gz |
tests: hlsdemux: Fix live startup sequence and seek range
To satisfy follwing restriction of HLS spec 6.3.3,
select startup fragment sequence to 4th from end of playlist.
Also, seek range should exclude last three fragment in playlist.
"the client SHOULD NOT choose a segment which starts less than
three target durations from the end of the Playlist file."
https://bugzilla.gnome.org/show_bug.cgi?id=777682
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/elements/hlsdemux_m3u8.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/check/elements/hlsdemux_m3u8.c b/tests/check/elements/hlsdemux_m3u8.c index 02f50f1a6..74cd69bfa 100644 --- a/tests/check/elements/hlsdemux_m3u8.c +++ b/tests/check/elements/hlsdemux_m3u8.c @@ -517,7 +517,7 @@ GST_START_TEST (test_live_playlist) pl = master->default_variant->m3u8; /* Check that we are live */ assert_equals_int (gst_m3u8_is_live (pl), TRUE); - assert_equals_int (pl->sequence, 2681); + assert_equals_int (pl->sequence, 2680); /* Check number of entries */ assert_equals_int (g_list_length (pl->files), 4); /* Check first media segments */ @@ -532,7 +532,7 @@ GST_START_TEST (test_live_playlist) assert_equals_int (file->sequence, 2683); fail_unless (gst_m3u8_get_seek_range (pl, &start, &stop)); assert_equals_int64 (start, 0); - assert_equals_float (stop / (double) GST_SECOND, 16.0); + assert_equals_float (stop / (double) GST_SECOND, 8.0); gst_hls_master_playlist_unref (master); } @@ -552,7 +552,7 @@ GST_START_TEST (test_live_playlist_rotated) master = load_playlist (LIVE_PLAYLIST); pl = master->default_variant->m3u8; - assert_equals_int (pl->sequence, 2681); + assert_equals_int (pl->sequence, 2680); /* Check first media segments */ file = GST_M3U8_MEDIA_FILE (g_list_first (pl->files)->data); assert_equals_int (file->sequence, 2680); |