cleanup
This commit is contained in:
parent
20478205c4
commit
be5e34bb9a
@ -268,12 +268,12 @@ impl CurrentProgram {
|
||||
|
||||
trace!("Clip from init: {}", node_clone.source);
|
||||
|
||||
// Important! When no manual drop is happen here, lock is still active in handle_list_init
|
||||
drop(nodes);
|
||||
|
||||
node_clone.seek += time_sec
|
||||
- (node_clone.begin.unwrap() - *self.playout_stat.time_shift.lock().unwrap());
|
||||
|
||||
// Important! When no manual drop is happen here, lock is still active in handle_list_init
|
||||
drop(nodes);
|
||||
|
||||
self.current_node = handle_list_init(
|
||||
&self.config,
|
||||
node_clone,
|
||||
@ -703,14 +703,11 @@ fn handle_list_init(
|
||||
) -> Media {
|
||||
debug!("Playlist init");
|
||||
let (_, total_delta) = get_delta(config, &node.begin.unwrap());
|
||||
let mut out = node.out;
|
||||
|
||||
if node.out - node.seek > total_delta {
|
||||
out = total_delta + node.seek;
|
||||
node.out = total_delta + node.seek;
|
||||
}
|
||||
|
||||
node.out = out;
|
||||
|
||||
gen_source(config, node, playout_stat, player_control, last_index)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user