diff options
author | Jan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com> | 2023-10-25 01:32:25 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2023-11-10 17:01:49 +0300 |
commit | 3a7bf71483e46e3096f674fda33ffc1d0368c3d9 (patch) | |
tree | 9a5fe6761f34baa14552c942f23d38f1b7703f41 /utils | |
parent | 9ad3c42e211ba4938458ef31d614bec9c8dda2f3 (diff) |
livesync: Move num_in counting to the src task
This is in preparation for moving more accept/discard logic to the src
task, so we can only count `num_in` here.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1388>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/livesync/src/livesync/imp.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/livesync/src/livesync/imp.rs b/utils/livesync/src/livesync/imp.rs index 169d6102..d198f0a6 100644 --- a/utils/livesync/src/livesync/imp.rs +++ b/utils/livesync/src/livesync/imp.rs @@ -964,7 +964,6 @@ impl LiveSync { state.queue.push_back(Item::Buffer(buffer, lateness)); state.buffer_queued = true; state.in_timestamp = timestamp; - state.num_in += 1; self.cond.notify_all(); Ok(gst::FlowSuccess::Ok) @@ -1132,6 +1131,8 @@ impl LiveSync { match in_buffer { Some((buffer, lateness)) => { + state.num_in += 1; + state.out_buffer = Some(buffer); state.out_timestamp = state.in_timestamp; |