mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-17 04:10:01 +01:00
updated for invalid file
This commit is contained in:
@@ -517,6 +517,8 @@ bool AC_MainWindow::startCamera(int res, int dev, const QString &outdir, bool re
|
|||||||
#endif
|
#endif
|
||||||
if(!writer.isOpened()) {
|
if(!writer.isOpened()) {
|
||||||
Log(tr("Could not create video writer..\n"));
|
Log(tr("Could not create video writer..\n"));
|
||||||
|
QMessageBox::information(this, tr("Error"), "Incorrect Pathname");
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
QString out_s;
|
QString out_s;
|
||||||
QTextStream out_stream(&out_s);
|
QTextStream out_stream(&out_s);
|
||||||
@@ -597,6 +599,8 @@ bool AC_MainWindow::startVideo(const QString &filename, const QString &outdir, b
|
|||||||
#endif
|
#endif
|
||||||
if(!writer.isOpened()) {
|
if(!writer.isOpened()) {
|
||||||
Log("Error could not open video writer.\n");
|
Log("Error could not open video writer.\n");
|
||||||
|
QMessageBox::information(this, tr("Error invalid path"), "Invalid Path name");
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
QString out_s;
|
QString out_s;
|
||||||
QTextStream out_stream(&out_s);
|
QTextStream out_stream(&out_s);
|
||||||
|
|||||||
Reference in New Issue
Block a user