Introducing multiple levels of Source Failure

This allows Mixer manager to deal with failed sources with the appropriate action: try to repair, leave for user to recreate, or delete.
This commit is contained in:
Bruno Herbelin
2023-03-22 22:50:08 +01:00
parent 9b4ef00278
commit f91522fc14
18 changed files with 159 additions and 127 deletions

View File

@@ -78,9 +78,9 @@ std::string MediaSource::info() const
return "Video File";
}
bool MediaSource::failed() const
Source::Failure MediaSource::failed() const
{
return mediaplayer_->failed();
return mediaplayer_->failed() ? FAIL_CRITICAL : FAIL_NONE;
}
uint MediaSource::texture() const