moved playback functions to viewer

This commit is contained in:
itsmattkc
2018-10-14 21:16:58 +11:00
parent 3c69c69ccd
commit 21776786f2
12 changed files with 142 additions and 126 deletions
+3 -3
View File
@@ -307,7 +307,7 @@ bool ExportThread::setupContainer() {
}
void ExportThread::run() {
panel_timeline->pause();
panel_sequence_viewer->pause();
if (!panel_sequence_viewer->viewer_widget->context()->makeCurrent(&surface)) {
qDebug() << "[ERROR] Make current failed";
@@ -335,8 +335,8 @@ void ExportThread::run() {
}
}
panel_timeline->seek(start_frame);
panel_timeline->reset_all_audio();
panel_sequence_viewer->seek(start_frame);
panel_sequence_viewer->reset_all_audio();
QOpenGLFramebufferObject fbo(sequence->width, sequence->height, QOpenGLFramebufferObject::CombinedDepthStencil, GL_TEXTURE_RECTANGLE);
fbo.bind();