ErrorProne: fix sampler/LongDoubleConversion

This commit is contained in:
mkpaz 2023-02-09 16:05:11 +04:00
parent cb7bde8fb6
commit 3601ecc4b7

@ -209,7 +209,7 @@ final class PlayerPane extends VBox {
long max = (long) currentPlayer.get().getMedia().getDuration().toSeconds();
long sliderVal = (long) timeSlider.getValue();
if (sliderVal <= max && timeSlider.isValueChanging()) {
currentPlayer.get().seek(Duration.seconds(sliderVal));
currentPlayer.get().seek(Duration.seconds((double) sliderVal));
}
});