footage: check files for changes

This commit is contained in:
itsmattkc
2021-05-16 10:29:05 +10:00
parent a675e0ccbb
commit ba9ed99849
9 changed files with 44 additions and 30 deletions
+2
View File
@@ -44,6 +44,8 @@ namespace olive {
class Decoder;
using DecoderPtr = std::shared_ptr<Decoder>;
#define DECODER_DEFAULT_DESTRUCTOR(x) virtual ~x() override {CloseInternal();}
/**
* @brief A decoder's is the main class for bringing external media into Olive
*
-5
View File
@@ -60,11 +60,6 @@ FFmpegDecoder::FFmpegDecoder() :
{
}
FFmpegDecoder::~FFmpegDecoder()
{
CloseInternal();
}
bool FFmpegDecoder::OpenInternal()
{
if (instance_.Open(stream().filename().toUtf8(), stream().stream())) {
+1 -1
View File
@@ -53,7 +53,7 @@ public:
FFmpegDecoder();
// Destructor
virtual ~FFmpegDecoder() override;
DECODER_DEFAULT_DESTRUCTOR(FFmpegDecoder)
virtual QString id() const override;
-5
View File
@@ -41,11 +41,6 @@ OIIODecoder::OIIODecoder() :
{
}
OIIODecoder::~OIIODecoder()
{
CloseInternal();
}
QString OIIODecoder::id() const
{
return QStringLiteral("oiio");
+1 -1
View File
@@ -34,7 +34,7 @@ class OIIODecoder : public Decoder
public:
OIIODecoder();
virtual ~OIIODecoder() override;
DECODER_DEFAULT_DESTRUCTOR(OIIODecoder)
virtual QString id() const override;