-recording loop detected in "starving" state now triggers and auto
 restart of the recording loop.

-preparing to release to main.
This commit is contained in:
zii 2024-08-02 07:55:04 -04:00
parent daad0dffa2
commit 7046dd1162
5 changed files with 13 additions and 2 deletions

View File

@ -103,6 +103,8 @@ int Camera::start(const QString &conf)
connect(thr2, &QThread::finished, this, &Camera::objMinusOne);
connect(thr3, &QThread::finished, this, &Camera::objMinusOne);
connect(detLoop, &DetectLoop::starving, recLoop, &RecordLoop::restart);
thr1->start();
thr2->start();
thr3->start();

View File

@ -32,7 +32,7 @@
using namespace std;
#define APP_VERSION "3.5.t2"
#define APP_VERSION "3.5.t3"
#define APP_NAME "JustMotion"
#define APP_TARGET "jmotion"
#define DATETIME_FMT "yyyyMMddhhmmss"

View File

@ -163,6 +163,8 @@ QString DetectLoop::statusLine()
{
if (eTimer.elapsed() >= 5000)
{
emit starving();
return "STARVED";
}
else

View File

@ -48,6 +48,10 @@ public:
void exec();
QString statusLine();
signals:
void starving();
};
#endif // DETECT_LOOP_H

View File

@ -23,7 +23,6 @@ private slots:
void init();
void resetTime();
void restart();
private:
@ -32,6 +31,10 @@ private:
QString camCmdFromConf();
public slots:
void restart();
public:
explicit RecordLoop(shared_t *shared, QThread *thr, QObject *parent = nullptr);