added some functionality for #97
This commit is contained in:
+5
-1
@@ -8,6 +8,10 @@
|
||||
#include <QMutex>
|
||||
#include <QPixmap>
|
||||
|
||||
#define MEDIA_TYPE_FOOTAGE 0
|
||||
#define MEDIA_TYPE_SEQUENCE 1
|
||||
#define MEDIA_TYPE_FOLDER 2
|
||||
|
||||
struct Sequence;
|
||||
|
||||
struct MediaStream {
|
||||
@@ -31,7 +35,7 @@ struct Media
|
||||
|
||||
QString url;
|
||||
QString name;
|
||||
bool is_sequence;
|
||||
char type;
|
||||
int64_t length;
|
||||
QVector<MediaStream*> video_tracks;
|
||||
QVector<MediaStream*> audio_tracks;
|
||||
|
||||
@@ -29,7 +29,7 @@ void PreviewGenerator::run() {
|
||||
if (media == NULL) {
|
||||
qDebug() << "[ERROR] No media was set for preview generation";
|
||||
} else {
|
||||
if (media->is_sequence) {
|
||||
if (media->type == MEDIA_TYPE_SEQUENCE) {
|
||||
qDebug() << "[ERROR] Cannot run preview generation on a sequence";
|
||||
} else {
|
||||
SwsContext* sws_ctx;
|
||||
|
||||
Reference in New Issue
Block a user