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

github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>2023-10-25 20:03:52 +0300
committerSebastian Dröge <sebastian@centricular.com>2023-11-10 17:02:42 +0300
commitb4855f1ba8c8e2d775fd7f1b14ccb9be17e702c7 (patch)
tree7263b98505a8e4ca365bbbeee453cf76060182d4
parentd65504aeb88e5b01e4bf34c47ed988899d8449b1 (diff)
livesync: Remove the stop from outgoing segments
Our buffer duplication can extend a segment indefinitely. Fixes: https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/452 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1388>
-rw-r--r--utils/livesync/src/livesync/imp.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/livesync/src/livesync/imp.rs b/utils/livesync/src/livesync/imp.rs
index 268eb1d7..5434defd 100644
--- a/utils/livesync/src/livesync/imp.rs
+++ b/utils/livesync/src/livesync/imp.rs
@@ -1157,8 +1157,13 @@ impl LiveSync {
state.out_duration = duration_from_caps(&caps);
}
- if let Some(segment) = segment {
+ if let Some(mut segment) = segment {
if !state.single_segment {
+ if let Some(stop) = segment.stop() {
+ gst::debug!(CAT, imp: self, "Removing stop {} from outgoing segment", stop);
+ segment.set_stop(gst::ClockTime::NONE);
+ }
+
gst::debug!(CAT, imp: self, "Forwarding segment: {:?}", segment);
let event = gst::event::Segment::new(&segment);