summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlex Ashley <bugzilla@ashley-family.net>2016-02-05 12:44:23 +0000
committerSebastian Dröge <sebastian@centricular.com>2017-03-02 19:54:04 +0200
commite1b68d9a65ba512a52c3a2b298fa830a445eb451 (patch)
treee8aa130ceb1fe06b33d03a10cdf38066229aaa4d /tests
parentb2e9891f8a06b07fad61204bda5b814a2ad5ef88 (diff)
downloadgstreamer-plugins-bad-e1b68d9a65ba512a52c3a2b298fa830a445eb451.tar.gz
adaptivedemux: answer duration queries for live streams
For duration queries on live streams, adaptivedemux ignores the query. The problem then is that the query is answered by the downstream qtdemux element, with the duration of the currently passing fragment. This commit changes the behaviour of adaptivedemux to answer the duration queries for live streams, returning GST_CLOCK_TIME_NONE. https://bugzilla.gnome.org/show_bug.cgi?id=753879
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/hlsdemux_m3u8.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/tests/check/elements/hlsdemux_m3u8.c b/tests/check/elements/hlsdemux_m3u8.c
index 74cd69bfa..82d778f2d 100644
--- a/tests/check/elements/hlsdemux_m3u8.c
+++ b/tests/check/elements/hlsdemux_m3u8.c
@@ -838,13 +838,6 @@ GST_START_TEST (test_get_duration)
assert_equals_uint64 (gst_m3u8_get_duration (pl), 40 * GST_SECOND);
gst_hls_master_playlist_unref (master);
-
- /* Test duration for live playlists */
- master = load_playlist (LIVE_PLAYLIST);
- pl = master->default_variant->m3u8;
- assert_equals_uint64 (gst_m3u8_get_duration (pl), GST_CLOCK_TIME_NONE);
-
- gst_hls_master_playlist_unref (master);
}
GST_END_TEST;