Commit 73ddbcc8 authored by Max Kellermann's avatar Max Kellermann

player/Thread: wake up the main thread after failed seek

Fixes deadlock bug. Closes #210
parent ce2b6dc8
...@@ -256,8 +256,12 @@ private: ...@@ -256,8 +256,12 @@ private:
bool SeekDecoder() noexcept; bool SeekDecoder() noexcept;
void CancelPendingSeek() noexcept { void CancelPendingSeek() noexcept {
if (!pc.seeking)
return;
pending_seek = SongTime::zero(); pending_seek = SongTime::zero();
pc.seeking = false; pc.seeking = false;
pc.ClientSignal();
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment