mirror of
https://github.com/Motion-Project/motion.git
synced 2026-05-08 14:52:59 -04:00
Revise motion_loop to mlp_main
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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_ */
|
||||
@@ -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."));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user