fixed crashes when exporting only video or only audio

This commit is contained in:
itsmattkc
2018-11-06 23:04:03 +11:00
parent 11d10ef329
commit 800ce6baad
5 changed files with 14 additions and 11 deletions
+2 -5
View File
@@ -10,7 +10,7 @@ extern "C" {
#include "project/clip.h"
Media::Media() : ready(false), preview_gen(NULL), throbber(NULL) {
Media::Media() : ready(false), preview_gen(NULL) {
ready_lock.lock();
}
@@ -22,10 +22,7 @@ void Media::reset() {
if (preview_gen != NULL) {
preview_gen->cancel();
preview_gen->wait();
}
if (throbber != NULL) {
delete throbber;
}
}
for (int i=0;i<video_tracks.size();i++) {
delete video_tracks.at(i);
}