fixed #95 and added minimal support for #66

This commit is contained in:
itsmattkc
2018-07-08 12:19:07 +01:00
parent a31a3d8c75
commit 0b739fcb76
17 changed files with 261 additions and 165 deletions
+17
View File
@@ -1,5 +1,9 @@
#include "transition.h"
#include "project/clip.h"
#include <QDebug>
Transition::Transition() {
length = 30;
link = NULL;
@@ -10,3 +14,16 @@ Transition* Transition::copy() {
}
void Transition::process_transition(float) {}
Transition* create_transition(int transition_id, Clip* c) {
if (c->track < 0) {
switch (transition_id) {
case VIDEO_DISSOLVE_TRANSITION: return new CrossDissolveTransition();
}
} else {
switch (transition_id) {
}
}
qDebug() << "[ERROR] Invalid transition ID";
return NULL;
}