dont seek if the playbar doesnt have a duration
This commit is contained in:
parent
d2025102e6
commit
f09a89140d
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
[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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue