From 81a91f228586c8b5d1363e3a78258b2110a62cd9 Mon Sep 17 00:00:00 2001 From: me Date: Sat, 12 Oct 2024 17:15:40 +0000 Subject: [PATCH] that fish is unlocked --- src/playbin.vala | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/playbin.vala b/src/playbin.vala index 3c1dded..cde33f2 100644 --- a/src/playbin.vala +++ b/src/playbin.vala @@ -89,13 +89,14 @@ class Playbin : Object { string? next_uri = null; this.next_uri_lock.lock (); - if (this.next_uri != this.next_uri_locked_in) { + if (this.next_uri != (string) this.playbin.current_uri) { + print("%s\n", this.next_uri); + print("%s\n", (string) this.playbin.current_uri); // WHOOPS! didn't actually switch to the track the play queue wanted // FIXME as it arises assert (false); } this.next_uri = null; - this.next_uri_locked_in = null; this.next_uri_lock.unlock (); this.stream_started (); @@ -175,7 +176,6 @@ class Playbin : Object { // pretend this track was locked in by about-to-finish before this.next_uri_lock.lock (); this.next_uri = uri; - this.next_uri_locked_in = uri; this.next_uri_lock.unlock (); yield this.set_state (Gst.State.READY); @@ -193,7 +193,6 @@ class Playbin : Object { Mutex next_uri_lock; string? next_uri; - string? next_uri_locked_in; public void set_next_uri (string? next_uri) { this.next_uri_lock.lock (); @@ -206,7 +205,6 @@ class Playbin : Object { private void on_about_to_finish (dynamic Gst.Element playbin) { this.next_uri_lock.lock (); string? next_uri = this.next_uri; - this.next_uri_locked_in = next_uri; this.next_uri_lock.unlock (); if (next_uri != null) {