SEVERAL improvements to timeline behavior, drawing, tools, effects, playback and edge case crashing

This commit is contained in:
itsmattkc
2018-11-14 22:31:17 +11:00
parent 30bfeef64a
commit 5b66b223f8
8 changed files with 59 additions and 45 deletions
+13 -2
View File
@@ -492,12 +492,23 @@ void Viewer::on_pushButton_3_clicked() {
}
void Viewer::update_playhead() {
seek(ui->currentTimecode->value());
seek(ui->currentTimecode->value());
}
void Viewer::timer_update() {
seq->playhead = round(playhead_start + ((QDateTime::currentMSecsSinceEpoch()-start_msecs) * 0.001 * seq->frame_rate));
long previous_playhead = seq->playhead;
seq->playhead = qRound(playhead_start + ((QDateTime::currentMSecsSinceEpoch()-start_msecs) * 0.001 * seq->frame_rate));
update_parents();
long end_frame = (seq->using_workarea && previous_playhead < seq->workarea_out) ? seq->workarea_out : seq->getEndFrame();
if ((!recording
&& playing
&& seq->playhead >= end_frame
&& previous_playhead < end_frame)
|| (recording && recording_start != recording_end && seq->playhead >= recording_end)) {
pause();
}
}
void Viewer::recording_flasher_update() {