From ede82ca5b4edbe87e43d06c6cdf513f00c2d371d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 14 Aug 2024 13:05:40 +0300 Subject: [PATCH] hlssink3: Don't use is-live=true This sometimes produces imperfect timestamps that cause the fragment duration to be slightly different than expected. Part-of: --- net/hlssink3/tests/hlssink3.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/hlssink3/tests/hlssink3.rs b/net/hlssink3/tests/hlssink3.rs index 67ec15c6..eeeb2e11 100644 --- a/net/hlssink3/tests/hlssink3.rs +++ b/net/hlssink3/tests/hlssink3.rs @@ -108,7 +108,7 @@ fn test_hlssink3_element_with_video_content() -> Result<(), ()> { let pipeline = gst::Pipeline::with_name("video_pipeline"); let video_src = try_create_element!("videotestsrc"); - video_src.set_property("is-live", true); + video_src.set_property("is-live", false); video_src.set_property("num-buffers", BUFFER_NB); let x264enc = try_create_element!("x264enc"); @@ -257,7 +257,7 @@ fn test_hlssink3_element_with_audio_content() -> Result<(), ()> { let pipeline = gst::Pipeline::with_name("audio_pipeline"); let audio_src = try_create_element!("audiotestsrc"); - audio_src.set_property("is-live", true); + audio_src.set_property("is-live", false); audio_src.set_property("num-buffers", BUFFER_NB); let hls_avenc_aac = try_or_pause!(gst::ElementFactory::make("avenc_aac") @@ -320,7 +320,7 @@ fn test_hlssink3_write_correct_playlist_content() -> Result<(), ()> { let pipeline = gst::Pipeline::with_name("video_pipeline"); let video_src = try_create_element!("videotestsrc"); - video_src.set_property("is-live", true); + video_src.set_property("is-live", false); video_src.set_property("num-buffers", BUFFER_NB); let x264enc = try_create_element!("x264enc");