mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-16 03:39:59 +01:00
only create directory if enabled
This commit is contained in:
@@ -1186,6 +1186,7 @@ bool AC_MainWindow::startVideo(const QString &filename, const QString &outdir, b
|
|||||||
QString path = filename.mid(filename.lastIndexOf("/"));
|
QString path = filename.mid(filename.lastIndexOf("/"));
|
||||||
stream1 << outdir << "/" << path << "_png." << output_index;
|
stream1 << outdir << "/" << path << "_png." << output_index;
|
||||||
|
|
||||||
|
if(png_record) {
|
||||||
QDir dir(dpath);
|
QDir dir(dpath);
|
||||||
if(!dir.exists()) {
|
if(!dir.exists()) {
|
||||||
dir.mkpath(dpath);
|
dir.mkpath(dpath);
|
||||||
@@ -1194,6 +1195,7 @@ bool AC_MainWindow::startVideo(const QString &filename, const QString &outdir, b
|
|||||||
std::cout << "directory exisits...\n";
|
std::cout << "directory exisits...\n";
|
||||||
}
|
}
|
||||||
++output_index;
|
++output_index;
|
||||||
|
}
|
||||||
playback->setPngPath(dpath.toStdString());
|
playback->setPngPath(dpath.toStdString());
|
||||||
playback->setVideo(capture_video,writer,recording, png_record);
|
playback->setVideo(capture_video,writer,recording, png_record);
|
||||||
playback->Play();
|
playback->Play();
|
||||||
|
|||||||
Reference in New Issue
Block a user