mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-14 03:39:57 +01:00
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:
@@ -26,15 +26,10 @@
|
||||
#include <gst/gst.h>
|
||||
|
||||
|
||||
#include "defines.h"
|
||||
#include "Log.h"
|
||||
#include "ImageShader.h"
|
||||
#include "ImageProcessingShader.h"
|
||||
#include "Resource.h"
|
||||
#include "Decorations.h"
|
||||
#include "Stream.h"
|
||||
#include "Visitor.h"
|
||||
#include "CloneSource.h"
|
||||
|
||||
#include "DeviceSource.h"
|
||||
|
||||
@@ -525,9 +520,9 @@ void DeviceSource::accept(Visitor& v)
|
||||
v.visit(*this);
|
||||
}
|
||||
|
||||
bool DeviceSource::failed() const
|
||||
Source::Failure DeviceSource::failed() const
|
||||
{
|
||||
return unplugged_ || StreamSource::failed();
|
||||
return (unplugged_ || StreamSource::failed()) ? FAIL_CRITICAL : FAIL_NONE;
|
||||
}
|
||||
|
||||
DeviceConfigSet Device::getDeviceConfigs(const std::string &src_description)
|
||||
|
||||
Reference in New Issue
Block a user