Skip to content

Commit

Permalink
reset video_params on Load
Browse files Browse the repository at this point in the history
  • Loading branch information
unclekingpin committed Oct 11, 2023
1 parent 058c522 commit acc136f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/models/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ impl<E: Env + 'static> UpdateWithCtx<E> for Player {
},
_ => eq_update(&mut self.meta_item, None),
};
let video_params_effects = eq_update(&mut self.video_params, None);
let subtitles_effects = subtitles_update::<E>(
&mut self.subtitles,
&self.selected,
Expand Down Expand Up @@ -241,6 +242,7 @@ impl<E: Env + 'static> UpdateWithCtx<E> for Player {
.join(update_streams_effects)
.join(selected_effects)
.join(meta_item_effects)
.join(video_params_effects)
.join(subtitles_effects)
.join(next_video_effects)
.join(next_streams_effects)
Expand Down

0 comments on commit acc136f

Please sign in to comment.