added cut/copy/paste

This commit is contained in:
itsmattkc
2018-06-08 18:20:50 -07:00
parent 5f2ed68f7b
commit cf18e52e90
13 changed files with 312 additions and 189 deletions
+3 -3
View File
@@ -313,14 +313,12 @@ void close_clip_worker(Clip* clip) {
av_frame_free(&clip->frame);
clip->reset();
// remove clip from current_clips
cc_lock.lock();
bool found = false;
for (int i=0;i<current_clips.count();i++) {
if (current_clips[i] == clip) {
current_clips.erase(current_clips.begin()+i);
current_clips.removeAt(i);
found = true;
i = current_clips.count();
}
@@ -328,6 +326,8 @@ void close_clip_worker(Clip* clip) {
cc_lock.unlock();
if (!found) qDebug() << "[WARNING] Could not remove clip from current clips";
clip->reset();
qDebug() << "[INFO] Clip closed on track" << clip->track;
}