fixed playback/export flickering and hanging

This commit is contained in:
itsmattkc
2018-10-29 17:01:52 +11:00
parent 2e2846597e
commit a54fee767d
32 changed files with 216 additions and 163 deletions
+3 -2
View File
@@ -11,6 +11,7 @@
#include "project/undo.h"
#include "ui/audiomonitor.h"
#include "ui_timeline.h"
#include "debug.h"
#define FRAMES_IN_ONE_MINUTE 1798 // 1800 - 2
#define FRAMES_IN_TEN_MINUTES 17978 // (FRAMES_IN_ONE_MINUTE * 10) - 2
@@ -98,7 +99,7 @@ long timecode_to_frame(const QString& s, int view, double frame_rate) {
QList<QString> list = s.split(QRegExp("[:;]"));
for (int i=0;i<list.size();i++) {
qDebug() << "list" << i << list.at(i);
dout << "list" << i << list.at(i);
}
if (view == TIMECODE_FRAMES || list.size() == 1) {
@@ -275,7 +276,7 @@ void Viewer::play() {
init_audio(seq);
}
if (is_recording_cued() && !start_recording()) {
qDebug() << "[ERROR] Failed to record audio";
dout << "[ERROR] Failed to record audio";
return;
}
playhead_start = seq->playhead;