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:
parent
36f712b949
commit
5e20b7976f
|
@ -119,7 +119,7 @@ decoder_control::Seek(double where)
|
||||||
|
|
||||||
seek_where = where;
|
seek_where = where;
|
||||||
seek_error = false;
|
seek_error = false;
|
||||||
SynchronousCommandLocked(DecoderCommand::SEEK);
|
LockSynchronousCommand(DecoderCommand::SEEK);
|
||||||
|
|
||||||
return !seek_error;
|
return !seek_error;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue