fix clippy

This commit is contained in:
jb-alvarado 2024-01-31 18:50:26 +01:00
parent 95e97c467a
commit af3d258e50

View File

@ -307,9 +307,8 @@ impl CurrentProgram {
// Important! When no manual drop is happen here, lock is still active in handle_list_init // Important! When no manual drop is happen here, lock is still active in handle_list_init
drop(nodes); drop(nodes);
node_clone.seek = time_sec node_clone.seek += time_sec
- (node_clone.begin.unwrap() - *self.playout_stat.time_shift.lock().unwrap()) - (node_clone.begin.unwrap() - *self.playout_stat.time_shift.lock().unwrap());
+ node_clone.seek;
self.current_node = handle_list_init( self.current_node = handle_list_init(
&self.config, &self.config,
@ -619,7 +618,7 @@ fn timed_source(
{ {
// when we are in the 24 hour range, get the clip // when we are in the 24 hour range, get the clip
new_node.process = Some(true); new_node.process = Some(true);
new_node = gen_source(config, node, &playout_stat, player_control, last_index); new_node = gen_source(config, node, playout_stat, player_control, last_index);
} else if total_delta <= 0.0 { } else if total_delta <= 0.0 {
info!("Begin is over play time, skip: {}", node.source); info!("Begin is over play time, skip: {}", node.source);
} else if total_delta < node.duration - node.seek || last { } else if total_delta < node.duration - node.seek || last {
@ -627,7 +626,7 @@ fn timed_source(
config, config,
node, node,
total_delta, total_delta,
&playout_stat, playout_stat,
player_control, player_control,
last_index, last_index,
); );
@ -665,9 +664,9 @@ pub fn gen_source(
if node.probe.is_some() { if node.probe.is_some() {
if node.out - node.seek < 1.0 { if node.out - node.seek < 1.0 {
if node.seek > 1.0 { if node.seek > 1.0 {
node.seek = node.seek - 1.0; node.seek -= 1.0;
} else { } else {
node.out = node.out + 1.0; node.out += 1.0;
} }
} }