From a82b5b04755f0781073323b6bc6cbc5565d16d31 Mon Sep 17 00:00:00 2001 From: Erica Z Date: Sat, 26 Oct 2024 17:30:58 +0200 Subject: [PATCH] fix edge case when stopping and then selecting something --- src/playbin.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/playbin.vala b/src/playbin.vala index 21cca2c..4549202 100644 --- a/src/playbin.vala +++ b/src/playbin.vala @@ -220,8 +220,9 @@ public class Playbin : GLib.Object { requires (position < this.play_queue.get_n_items ()) { assert (this.mpv.command ({"playlist-play-index", position.to_string ()}) >= 0); - this.state = PlaybinState.PLAYING; this.play_queue_position = position; + this.state = PlaybinState.PLAYING; + this.play (); // make sure mpv actually starts playing the track } public void pause () {