diff --git a/src/main_window.cpp b/src/main_window.cpp index b737482..3d7b1b7 100755 --- a/src/main_window.cpp +++ b/src/main_window.cpp @@ -481,7 +481,7 @@ bool AC_MainWindow::startCamera(int res, int dev, const QString &outdir, bool re #if defined(__APPLE__) || defined(__linux__) ext = (type == 0) ? ".mov" : ".avi"; #else - ext = ".mov"; + ext = (type == 0) ? ".mov" : ".mov"; #endif Log(tr("Capture Device Opened [Camera]\n")); std::ostringstream time_stream; @@ -591,7 +591,7 @@ bool AC_MainWindow::startVideo(const QString &filename, const QString &outdir, b #if defined(__APPLE__) || defined(__linux__) ext = (type == 0) ? ".mov" : ".avi"; #else - ext = ".mov"; + ext = (type == 0) ? ".mov" : ".mov"; #endif std::ostringstream time_stream; time_stream << "-" << (m->tm_year + 1900) << "." << (m->tm_mon + 1) << "." << m->tm_mday << "_" << m->tm_hour << "." << m->tm_min << "." << m->tm_sec << "_";