diff options
author | Seungha Yang <seungha@centricular.com> | 2023-08-31 13:57:33 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2023-11-10 18:32:39 +0300 |
commit | 9e46f6c4119cda8e59034295a913f19ba59593d9 (patch) | |
tree | 0bd3be2be8a9b7f012bc11484fdbc209738d41f8 | |
parent | 98b104dc7b499914ccfdfb38ae7b75c75285acaf (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.rs | 2 |
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 { |