From f09a89140d51d0048b2a88740d724afa5395c146 Mon Sep 17 00:00:00 2001 From: Erica Z Date: Sun, 20 Oct 2024 13:37:33 +0200 Subject: [PATCH] dont seek if the playbar doesnt have a duration --- src/ui/playbar.vala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/playbar.vala b/src/ui/playbar.vala index 0372a37..16d33ab 100644 --- a/src/ui/playbar.vala +++ b/src/ui/playbar.vala @@ -12,7 +12,9 @@ class Ui.Playbar : Gtk.Box { } [GtkCallback] private bool on_play_position_seek (Gtk.Range range, Gtk.ScrollType scroll_type, double value) { - this.playbin.seek ((int64) value); + if (range.adjustment.lower < range.adjustment.upper) { + this.playbin.seek ((int64) value); + } return false; }