Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungha Yang <seungha@centricular.com>2023-08-31 13:57:33 +0300
committerSebastian Dröge <sebastian@centricular.com>2023-11-10 18:32:39 +0300
commit9e46f6c4119cda8e59034295a913f19ba59593d9 (patch)
tree0bd3be2be8a9b7f012bc11484fdbc209738d41f8
parent98b104dc7b499914ccfdfb38ae7b75c75285acaf (diff)
hlssink3: Don't remove old files if max-files is zero
Follow hlssink2 element's behavior Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1387>
-rw-r--r--net/hlssink3/src/imp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/hlssink3/src/imp.rs b/net/hlssink3/src/imp.rs
index 5d19cb7cb..3d07a071c 100644
--- a/net/hlssink3/src/imp.rs
+++ b/net/hlssink3/src/imp.rs
@@ -334,7 +334,7 @@ impl HlsSink3 {
gst::StateChangeError
})?;
- if state.playlist.is_type_undefined() {
+ if state.playlist.is_type_undefined() && max_num_segments > 0 {
// Cleanup old segments from filesystem
if state.old_segment_locations.len() > max_num_segments {
for _ in 0..state.old_segment_locations.len() - max_num_segments {