diff --git a/project/sequence.cpp b/project/sequence.cpp index 3d5ae8a70..b29a20884 100644 --- a/project/sequence.cpp +++ b/project/sequence.cpp @@ -9,7 +9,8 @@ Sequence::Sequence() : playhead(0), using_workarea(false), workarea_in(0), - workarea_out(0) + workarea_out(0), + wrapper_sequence(false) { } diff --git a/project/sequence.cpp.autosave b/project/sequence.cpp.autosave deleted file mode 100644 index b29a20884..000000000 --- a/project/sequence.cpp.autosave +++ /dev/null @@ -1,75 +0,0 @@ -#include "sequence.h" - -#include "project/clip.h" -#include "effects/transition.h" - -#include - -Sequence::Sequence() : - playhead(0), - using_workarea(false), - workarea_in(0), - workarea_out(0), - wrapper_sequence(false) -{ -} - -Sequence::~Sequence() { - // dealloc all clips - for (int i=0;iname = name + " (copy)"; - s->width = width; - s->height = height; - s->frame_rate = frame_rate; - s->audio_frequency = audio_frequency; - s->audio_layout = audio_layout; - s->clips.resize(clips.size()); - for (int i=0;iclips[i] = NULL; - } else { - Clip* copy = c->copy(s); - copy->linked = c->linked; - s->clips[i] = copy; - } - } - return s; -} - -long Sequence::getEndFrame() { - long end = 0; - for (int j=0;jtimeline_out > end) { - end = c->timeline_out; - } - } - return end; -} - -void Sequence::getTrackLimits(int* video_tracks, int* audio_tracks) { - int vt = 0; - int at = 0; - for (int j=0;jtrack < 0 && c->track < vt) { // video clip - vt = c->track; - } else if (c->track > at) { - at = c->track; - } - } - } - if (video_tracks != NULL) *video_tracks = vt; - if (audio_tracks != NULL) *audio_tracks = at; -} - -// static variable for the currently active sequence -Sequence* sequence = NULL;