aboutsummaryrefslogtreecommitdiffstats
path: root/src/DecoderControl.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-09-30 16:20:35 +0200
committerMax Kellermann <max@duempel.org>2013-09-30 16:20:35 +0200
commit5e20b7976f812e4ca2bb0c552c414ef2dfbe81a0 (patch)
tree0b123ebececb5b2f46b9e5e70486ecddd0eb4792 /src/DecoderControl.cxx
parent36f712b9496a12d86d12aa32dff0d6663fc29f80 (diff)
downloadmpd-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 'src/DecoderControl.cxx')
-rw-r--r--src/DecoderControl.cxx2
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;
}