@@ -22,6 +22,7 @@
|
||||
#define COLORSERVICE_H
|
||||
|
||||
#include <memory>
|
||||
#include <QMutex>
|
||||
|
||||
#include "codec/frame.h"
|
||||
#include "colorprocessor.h"
|
||||
@@ -91,6 +92,11 @@ public:
|
||||
|
||||
};
|
||||
|
||||
QMutex* mutex()
|
||||
{
|
||||
return &mutex_;
|
||||
}
|
||||
|
||||
signals:
|
||||
void ConfigChanged();
|
||||
|
||||
@@ -109,6 +115,8 @@ private:
|
||||
|
||||
QString reference_space_;
|
||||
|
||||
QMutex mutex_;
|
||||
|
||||
static OCIO::ConstConfigRcPtr default_config_;
|
||||
|
||||
};
|
||||
|
||||
@@ -28,6 +28,8 @@ namespace olive {
|
||||
|
||||
ColorProcessor::ColorProcessor(ColorManager *config, const QString &input, const ColorTransform &transform)
|
||||
{
|
||||
QMutexLocker locker(config->mutex());
|
||||
|
||||
const QString& output = (transform.output().isEmpty()) ? config->GetDefaultDisplay() : transform.output();
|
||||
|
||||
if (transform.is_display()) {
|
||||
|
||||
Reference in New Issue
Block a user