added cross dissolve transitions (but they're uneditable)

This commit is contained in:
itsmattkc
2018-07-03 06:45:32 +01:00
parent 0ae230ac29
commit 5a60e2d2c6
16 changed files with 123 additions and 34 deletions
+14 -13
View File
@@ -12,7 +12,17 @@ extern "C" {
}
Clip::Clip() {
init();
reset();
enabled = true;
clip_in = 0;
timeline_in = 0;
timeline_out = 0;
track = 0;
undeletable = 0;
texture = NULL;
opening_transition = NULL;
closing_transition = NULL;
pkt = new AVPacket();
}
Clip* Clip::copy() {
@@ -39,18 +49,6 @@ Clip* Clip::copy() {
return copy;
}
void Clip::init() {
reset();
enabled = true;
clip_in = 0;
timeline_in = 0;
timeline_out = 0;
track = 0;
undeletable = 0;
texture = NULL;
pkt = new AVPacket();
}
void Clip::reset() {
cache_size = false;
audio_just_reset = false;
@@ -87,6 +85,9 @@ Clip::~Clip() {
open_lock.lock();
open_lock.unlock();
if (opening_transition != NULL) delete opening_transition;
if (closing_transition != NULL) delete closing_transition;
for (int i=0;i<effects.size();i++) {
delete effects.at(i);
}