mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-29 06:50:59 +00:00
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/1069>
This commit is contained in:
parent
1998ecab45
commit
33696a8aed
1 changed files with 3 additions and 1 deletions
|
@ -588,7 +588,9 @@ impl LiveSync {
|
||||||
|
|
||||||
let mut state = self.state.lock();
|
let mut state = self.state.lock();
|
||||||
state.segment = Some(segment.clone());
|
state.segment = Some(segment.clone());
|
||||||
|
if !state.single_segment {
|
||||||
state.sent_segment = false;
|
state.sent_segment = false;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue