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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user