mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-06-26 10:00:36 +00:00
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/1387>
This commit is contained in:
parent
8114f94f73
commit
9ffcb14617
|
@ -1171,8 +1171,18 @@ impl LiveSync {
|
||||||
state.out_duration = duration_from_caps(&caps);
|
state.out_duration = duration_from_caps(&caps);
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(segment) = segment {
|
if let Some(mut segment) = segment {
|
||||||
if !state.single_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);
|
gst::debug!(CAT, imp: self, "Forwarding segment: {:?}", segment);
|
||||||
|
|
||||||
let event = gst::event::Segment::new(&segment);
|
let event = gst::event::Segment::new(&segment);
|
||||||
|
|
Loading…
Reference in a new issue