mirror of
https://github.com/Motion-Project/motion.git
synced 2026-05-09 07:14:07 -04:00
Add interrupt to movie
This commit is contained in:
@@ -505,11 +505,15 @@ static void motion_watchdog(struct ctx_motapp *motapp, int indx)
|
||||
, motapp->cam_list[indx]->threadnr);
|
||||
if ((motapp->cam_list[indx]->camera_type == CAMERA_TYPE_NETCAM) &&
|
||||
(motapp->cam_list[indx]->netcam != NULL)) {
|
||||
pthread_cancel(motapp->cam_list[indx]->netcam->thread_id);
|
||||
if (motapp->cam_list[indx]->netcam->handler_finished == false) {
|
||||
pthread_cancel(motapp->cam_list[indx]->netcam->thread_id);
|
||||
}
|
||||
}
|
||||
if ((motapp->cam_list[indx]->camera_type == CAMERA_TYPE_NETCAM) &&
|
||||
(motapp->cam_list[indx]->netcam_high != NULL)) {
|
||||
pthread_cancel(motapp->cam_list[indx]->netcam_high->thread_id);
|
||||
if (motapp->cam_list[indx]->netcam_high->handler_finished == false) {
|
||||
pthread_cancel(motapp->cam_list[indx]->netcam_high->thread_id);
|
||||
}
|
||||
}
|
||||
pthread_cancel(motapp->cam_list[indx]->thread_id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user