int vid_start(struct context *cnt) { struct config *conf = &cnt->conf; int fd_bktr = -1; if (conf->netcam_url) { fd_bktr = netcam_start(cnt); if (fd_bktr < 0) { netcam_cleanup(cnt->netcam, 1); cnt->netcam = NULL; } } #ifdef WITHOUT_V4L else motion_log(LOG_ERR, 0, "%s: You must setup netcam_url", __FUNCTION__); #else else {
/** * vid_start * */ int vid_start(struct context *cnt) { struct config *conf = &cnt->conf; int fd_bktr = -1; if (conf->netcam_url) { fd_bktr = netcam_start(cnt); if (fd_bktr < 0) { netcam_cleanup(cnt->netcam, 1); cnt->netcam = NULL; } } #ifdef WITHOUT_V4L else MOTION_LOG(CRT, TYPE_VIDEO, NO_ERRNO, "%s: You must setup netcam_url"); #else else {