several conversions to smart pointers

This commit is contained in:
itsmattkc
2019-02-16 21:21:04 -08:00
parent e063a5ba8f
commit 5207a0511f
104 changed files with 972 additions and 945 deletions
+5 -4
View File
@@ -23,6 +23,7 @@
#include <QThread>
#include <QSemaphore>
#include <QDir>
enum IconType {
ICON_TYPE_VIDEO,
@@ -45,7 +46,7 @@ class PreviewGenerator : public QThread
{
Q_OBJECT
public:
PreviewGenerator(Media*, Footage*, bool);
PreviewGenerator(Media*, FootagePtr, bool);
void run();
void cancel();
signals:
@@ -57,12 +58,12 @@ private:
void finalize_media();
AVFormatContext* fmt_ctx;
Media* media;
Footage* footage;
FootagePtr footage;
bool retrieve_duration;
bool contains_still_image;
bool replace;
bool cancelled;
QString data_path;
bool cancelled;
QDir data_dir;
QString get_thumbnail_path(const QString &hash, const FootageStream &ms);
QString get_waveform_path(const QString& hash, const FootageStream &ms);
};