Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/livesync/src/livesync/imp.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/utils/livesync/src/livesync/imp.rs b/utils/livesync/src/livesync/imp.rs
index d198f0a6..5a2363c0 100644
--- a/utils/livesync/src/livesync/imp.rs
+++ b/utils/livesync/src/livesync/imp.rs
@@ -1125,7 +1125,6 @@ impl LiveSync {
}
};
- let duplicate;
let mut caps = None;
let mut segment = None;
@@ -1139,7 +1138,9 @@ impl LiveSync {
caps = state.pending_caps.take();
segment = state.pending_segment.take();
- duplicate = lateness != BufferLateness::OnTime;
+ if lateness != BufferLateness::OnTime {
+ state.num_duplicate += 1;
+ }
}
None => {
// Work around borrow checker
@@ -1178,7 +1179,7 @@ impl LiveSync {
state.out_buffer.as_ref().unwrap(),
state.out_segment.as_ref().unwrap(),
);
- duplicate = true;
+ state.num_duplicate += 1;
}
}
@@ -1223,9 +1224,6 @@ impl LiveSync {
}
state.num_out += 1;
- if duplicate {
- state.num_duplicate += 1;
- }
drop(state);