From 73ddbcc8767e17304fbf8874c60ac58358b10072 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 3 Feb 2018 19:28:39 +0100 Subject: [PATCH] player/Thread: wake up the main thread after failed seek Fixes deadlock bug. Closes #210 --- src/player/Thread.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/player/Thread.cxx b/src/player/Thread.cxx index b1716950f..03bf2251f 100644 --- a/src/player/Thread.cxx +++ b/src/player/Thread.cxx @@ -256,8 +256,12 @@ private: bool SeekDecoder() noexcept; void CancelPendingSeek() noexcept { + if (!pc.seeking) + return; + pending_seek = SongTime::zero(); pc.seeking = false; + pc.ClientSignal(); } /**