player/Thread: wake up the main thread after failed seek
Fixes deadlock bug. Closes #210
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user