backend transcoding done for proxies

This commit is contained in:
itsmattkc
2019-01-31 23:01:28 +11:00
parent c8aec606d0
commit c779ec43e7
13 changed files with 493 additions and 35 deletions
+11 -1
View File
@@ -2,6 +2,7 @@
#include "io/config.h"
#include "io/path.h"
#include "io/proxygenerator.h"
#include "project/footage.h"
#include "project/sequence.h"
@@ -211,6 +212,7 @@ MainWindow::MainWindow(QWidget *parent, const QString &an) :
statusBar->showMessage("Welcome to " + appName);
setStatusBar(statusBar);
// populate menu bars
setup_menus();
if (!data_dir.isEmpty()) {
@@ -227,9 +229,14 @@ MainWindow::MainWindow(QWidget *parent, const QString &an) :
autorecovery_timer.start();
}
// set up panel layout
setup_layout(false);
// set up output audio device
init_audio();
// start omnipotent proxy generator process
proxy_generator.start();
}
MainWindow::~MainWindow() {
@@ -988,6 +995,9 @@ void MainWindow::updateTitle(const QString& url) {
void MainWindow::closeEvent(QCloseEvent *e) {
if (can_close_project()) {
// stop proxy generator thread
proxy_generator.cancel();
panel_effect_controls->clear_effects(true);
set_sequence(nullptr);
@@ -1037,8 +1047,8 @@ void MainWindow::paintEvent(QPaintEvent *event) {
if (!demoNoticeShown) {
#ifndef QT_DEBUG
DemoNotice* d = new DemoNotice(this);
connect(d, SIGNAL(finished(int)), d, SLOT(deleteLater()));
d->open();
connect(d, SIGNAL(finished()), d, SLOT(deleteLater()));
#endif
demoNoticeShown = true;