Revise motion_loop to mlp_main

This commit is contained in:
Mr-Dave
2023-01-31 21:04:00 -07:00
parent ddcd761a13
commit 85a8d446fe
3 changed files with 3 additions and 3 deletions

View File

@@ -1424,7 +1424,7 @@ static void mlp_frametiming(ctx_dev *cam)
}
/** main processing loop for each camera */
void *motion_loop(void *arg)
void *mlp_main(void *arg)
{
ctx_dev *cam =(ctx_dev *) arg;

View File

@@ -22,7 +22,7 @@
#ifndef _INCLUDE_MOTION_LOOP_HPP_
#define _INCLUDE_MOTION_LOOP_HPP_
void *motion_loop(void *arg);
void *mlp_main(void *arg);
void mlp_cleanup(ctx_dev *cam);
#endif /* _INCLUDE_MOTION_LOOP_HPP_ */

View File

@@ -442,7 +442,7 @@ static void motpls_start_thread_cam(ctx_dev *cam)
pthread_attr_setdetachstate(&thread_attr, PTHREAD_CREATE_DETACHED);
cam->restart_dev = true;
retcd = pthread_create(&cam->thread_id, &thread_attr, &motion_loop, cam);
retcd = pthread_create(&cam->thread_id, &thread_attr, &mlp_main, cam);
if (retcd != 0) {
MOTION_LOG(WRN, TYPE_ALL, NO_ERRNO,_("Unable to start camera thread."));
}