From 5e20b7976f812e4ca2bb0c552c414ef2dfbe81a0 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Mon, 30 Sep 2013 16:20:35 +0200
Subject: [PATCH] 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).
---
 src/DecoderControl.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 }