Skip to content

Commit 687e7c2

Browse files
committed
fix subtitle delay problem
fix delay by setting timer type to Qt::PreciseTimer fixes #11
1 parent eeef7a7 commit 687e7c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mainwindow.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ MainWindow::MainWindow(QWidget *parent) :
4444
this->setWindowFlags(flags | Qt::X11BypassWindowManagerHint | Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint); //
4545
this->setAttribute(Qt::WA_TranslucentBackground, true);
4646

47+
timer->setTimerType(Qt::PreciseTimer); // fixes subtitle delay
4748
connect(timer, SIGNAL(timeout()), this, SLOT(update()));
4849

4950
connect(ui->backwardButton, SIGNAL(clicked()), this, SLOT(fastBackward()));

0 commit comments

Comments
 (0)