diff --git a/src/motion_loop.cpp b/src/motion_loop.cpp index 615ae0da..276915bd 100644 --- a/src/motion_loop.cpp +++ b/src/motion_loop.cpp @@ -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; diff --git a/src/motion_loop.hpp b/src/motion_loop.hpp index 270801a6..e6edd7fe 100644 --- a/src/motion_loop.hpp +++ b/src/motion_loop.hpp @@ -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_ */ \ No newline at end of file diff --git a/src/motionplus.cpp b/src/motionplus.cpp index ecd21718..4a6fd9b8 100644 --- a/src/motionplus.cpp +++ b/src/motionplus.cpp @@ -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.")); }