livesync: Only resend segment if not in single-segment mode

In single-segment mode, the outgoing segment does not change when the
incoming segment changes. We only need to resend the segment if we got
flushed or deactivated.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1086>
This commit is contained in:
Jan Alexander Steffens (heftig) 2023-01-30 16:26:42 +01:00 committed by Sebastian Dröge
parent 68bec4a0db
commit 402d96b80c

View file

@ -588,7 +588,9 @@ impl LiveSync {
let mut state = self.state.lock();
state.segment = Some(segment.clone());
state.sent_segment = false;
if !state.single_segment {
state.sent_segment = false;
}
return true;
}