mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-25 13:01:07 +00:00
livesync: Move a notify closer to the interesting state change
Move the `notify_all` to where we pop the buffer. We're moving within a single state lock so no change in behavior. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1369>
This commit is contained in:
parent
44f2195674
commit
1740a8e363
1 changed files with 1 additions and 1 deletions
|
@ -1074,6 +1074,7 @@ impl LiveSync {
|
|||
None
|
||||
} else {
|
||||
state.buffer_queued = false;
|
||||
self.cond.notify_all();
|
||||
Some((buffer, lateness))
|
||||
}
|
||||
}
|
||||
|
@ -1138,7 +1139,6 @@ impl LiveSync {
|
|||
segment = state.pending_segment.take();
|
||||
|
||||
duplicate = lateness != BufferLateness::OnTime;
|
||||
self.cond.notify_all();
|
||||
}
|
||||
None => {
|
||||
// Work around borrow checker
|
||||
|
|
Loading…
Reference in a new issue