diff options
author | Matthew Waters <matthew@centricular.com> | 2017-03-14 16:49:25 +1100 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2017-03-14 16:50:30 +1100 |
commit | fd8d35298f212487d54b50b3534326a316668ebc (patch) | |
tree | 6f56439beabe7442ad01a0d5f7ef8859e6ef2f22 /tests | |
parent | efc015f27deca351e4f7cca1ebf6bc23bad6fd71 (diff) | |
download | gstreamer-plugins-bad-fd8d35298f212487d54b50b3534326a316668ebc.tar.gz |
Revert "adaptivedemux: answer duration queries for live streams"
Completely disabling duration reporting with live streams is not cool.
This reverts commit e1b68d9a65ba512a52c3a2b298fa830a445eb451.
https://bugzilla.gnome.org/show_bug.cgi?id=753879
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/elements/hlsdemux_m3u8.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/check/elements/hlsdemux_m3u8.c b/tests/check/elements/hlsdemux_m3u8.c index 28952d79c..a77aca129 100644 --- a/tests/check/elements/hlsdemux_m3u8.c +++ b/tests/check/elements/hlsdemux_m3u8.c @@ -843,6 +843,13 @@ 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; |