mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-18 04:39:59 +01:00
added test to for when initialization fails
This commit is contained in:
@@ -386,7 +386,8 @@ bool AC_MainWindow::startCamera(int res, int dev, const QString &outdir, bool re
|
||||
file_new_capture->setEnabled(false);
|
||||
file_new_video->setEnabled(false);
|
||||
controls_stop->setEnabled(true);
|
||||
playback->setVideoCamera(dev, res, writer, recording);
|
||||
bool rt_val = playback->setVideoCamera(dev, res, writer, recording);
|
||||
if(rt_val == false) return false;
|
||||
playback->Play();
|
||||
disp->show();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user