From 3eefafaca79932b11b1af39f93166c367fbe9b62 Mon Sep 17 00:00:00 2001 From: lostjared Date: Tue, 7 Feb 2017 16:59:06 -0800 Subject: [PATCH] updated --- src/main_window.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main_window.cpp b/src/main_window.cpp index dbc0d47..47ea694 100644 --- a/src/main_window.cpp +++ b/src/main_window.cpp @@ -125,8 +125,9 @@ void Playback::Stop() { } void Playback::msleep(int ms) { - struct timespec ts = { ms / 1000, (ms % 1000) * 1000 * 1000}; - nanosleep(&ts, NULL); + //struct timespec ts = { ms / 1000, (ms % 1000) * 1000 * 1000}; + //nanosleep(&ts, NULL); + QThread::msleep(ms); } bool Playback::isStopped() const { @@ -529,7 +530,6 @@ bool AC_MainWindow::startVideo(const QString &filename, const QString &outdir, b void AC_MainWindow::controls_Stop() { playback->Stop(); if(capture_video.isOpened()) { - capture_video.release(); if(recording == true) writer.release(); cv::destroyWindow("Acid Cam v2");