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).
This commit is contained in:
Max Kellermann 2013-09-30 16:20:35 +02:00
parent 36f712b949
commit 5e20b7976f
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ decoder_control::Seek(double where)
seek_where = where;
seek_error = false;
SynchronousCommandLocked(DecoderCommand::SEEK);
LockSynchronousCommand(DecoderCommand::SEEK);
return !seek_error;
}