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

@@ -88,6 +88,7 @@ public:
uint numSources() const;
// update all sources and mark sources which failed
inline bool ready () const { return ready_; }
void update (float dt);
uint64_t runtime() const;
@@ -97,6 +98,7 @@ public:
// return the list of sources which failed
SourceListUnique failedSources () const { return failed_; }
void deleteFailedSources ();
// get frame result of render
inline FrameBuffer *frame () const { return render_.frame(); }
@@ -195,6 +197,7 @@ protected:
std::mutex access_;
FrameBufferImage *thumbnail_;
uint64_t start_time_;
bool ready_;
struct Fading
{