decoder/Control: Seek() returns Error information

This commit is contained in:
Max Kellermann
2015-11-11 17:20:27 +01:00
parent 5e93c05095
commit faca8bc02a
3 changed files with 18 additions and 5 deletions

View File

@@ -605,8 +605,10 @@ Player::SeekDecoder()
where = total_time;
}
if (!dc.Seek(where + start_time)) {
Error error;
if (!dc.Seek(where + start_time, error)) {
/* decoder failure */
pc.SetError(PlayerError::DECODER, std::move(error));
pc.LockCommandFinished();
return false;
}