diff --git a/server/motion_processor.cpp b/server/motion_processor.cpp index 2e23415f..8f12625b 100644 --- a/server/motion_processor.cpp +++ b/server/motion_processor.cpp @@ -854,24 +854,3 @@ int motion_processor::set_motion_thresh(const char *map, size_t size) return 0; } - -static void *bc_mproc_thread(void *data) -{ - motion_processor *mp = (motion_processor *)data; - mp->run(); - return NULL; -} - -/* -void motion_processor::start_thread() -{ - int ret; - - ret = pthread_create(&m_thread, NULL, bc_mproc_thread, this); - if (ret != 0) { - bc_log(Error, "Error starting motion processor thread: %s", - strerror(errno)); - return; - } -} -*/ diff --git a/server/motion_processor.h b/server/motion_processor.h index 7387d335..346cb655 100644 --- a/server/motion_processor.h +++ b/server/motion_processor.h @@ -52,8 +52,6 @@ class motion_processor : public stream_consumer void destroy(); void run(); - //void start_thread(); - private: AVCodecContext *decode_ctx; bool destroy_flag;