don't use shared ptrs for project items

This commit is contained in:
itsmattkc
2020-12-16 10:28:43 +11:00
parent 1cd07bc1f7
commit e12013e2fb
31 changed files with 209 additions and 255 deletions
+3 -3
View File
@@ -218,13 +218,13 @@ QString FFmpegDecoder::id()
return QStringLiteral("ffmpeg");
}
FootagePtr FFmpegDecoder::Probe(const QString& filename, const QAtomicInt* cancelled) const
Footage *FFmpegDecoder::Probe(const QString& filename, const QAtomicInt* cancelled) const
{
// Variable for receiving errors from FFmpeg
int error_code;
// Result to return
FootagePtr footage = nullptr;
Footage* footage = nullptr;
// Convert QString to a C string
QByteArray ba = filename.toUtf8();
@@ -444,7 +444,7 @@ FootagePtr FFmpegDecoder::Probe(const QString& filename, const QAtomicInt* cance
if (found_valid_streams) {
// We actually have footage we can return instead of nullptr
footage = std::make_shared<Footage>();
footage = new Footage();
// Copy streams over
foreach (StreamPtr stream, streams) {