diff options
author | Max Kellermann <max@duempel.org> | 2013-09-30 16:20:35 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-09-30 16:20:35 +0200 |
commit | 5e20b7976f812e4ca2bb0c552c414ef2dfbe81a0 (patch) | |
tree | 0b123ebececb5b2f46b9e5e70486ecddd0eb4792 /src/DecoderControl.cxx | |
parent | 36f712b9496a12d86d12aa32dff0d6663fc29f80 (diff) | |
download | mpd-5e20b7976f812e4ca2bb0c552c414ef2dfbe81a0.tar.gz mpd-5e20b7976f812e4ca2bb0c552c414ef2dfbe81a0.tar.xz mpd-5e20b7976f812e4ca2bb0c552c414ef2dfbe81a0.zip |
DecoderControl: lock the mutex in Seek()
Use LockSynchronousCommand() instead of SynchronousCommandLocked().
Fixes regression from commit ef663810 (dead lock due to cond_wait with
unlocked mutex).
Diffstat (limited to '')
-rw-r--r-- | src/DecoderControl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DecoderControl.cxx b/src/DecoderControl.cxx index 191a6e363..91ed17ffd 100644 --- a/src/DecoderControl.cxx +++ b/src/DecoderControl.cxx @@ -119,7 +119,7 @@ decoder_control::Seek(double where) seek_where = where; seek_error = false; - SynchronousCommandLocked(DecoderCommand::SEEK); + LockSynchronousCommand(DecoderCommand::SEEK); return !seek_error; } |