Adjust v4l2 messages

This commit is contained in:
MrDave
2020-09-09 18:23:06 -06:00
committed by Mr-Dave
parent 2249bc1d95
commit 7cb6776e77

View File

@@ -859,8 +859,8 @@ static int v4l2_capture(struct ctx_cam *cam, struct video_dev *curdev, unsigned
sigaddset(&set, SIGHUP);
pthread_sigmask(SIG_BLOCK, &set, &old);
MOTION_LOG(DBG, TYPE_VIDEO, NO_ERRNO
,_("1) vid_source->pframe %i"), vid_source->pframe);
//MOTION_LOG(DBG, TYPE_VIDEO, NO_ERRNO
// ,_("1) vid_source->pframe %i"), vid_source->pframe);
if (vid_source->pframe >= 0) {
if (xioctl(vid_source, VIDIOC_QBUF, &vid_source->buf) == -1) {
@@ -906,14 +906,14 @@ static int v4l2_capture(struct ctx_cam *cam, struct video_dev *curdev, unsigned
return retcd;
}
MOTION_LOG(DBG, TYPE_VIDEO, NO_ERRNO, "2) vid_source->pframe %i", vid_source->pframe);
//MOTION_LOG(DBG, TYPE_VIDEO, NO_ERRNO, "2) vid_source->pframe %i", vid_source->pframe);
vid_source->pframe = vid_source->buf.index;
vid_source->buffers[vid_source->buf.index].used = vid_source->buf.bytesused;
vid_source->buffers[vid_source->buf.index].content_length = vid_source->buf.bytesused;
MOTION_LOG(DBG, TYPE_VIDEO, NO_ERRNO, "3) vid_source->pframe %i "
"vid_source->buf.index %i", vid_source->pframe, vid_source->buf.index);
//MOTION_LOG(DBG, TYPE_VIDEO, NO_ERRNO, "3) vid_source->pframe %i "
// "vid_source->buf.index %i", vid_source->pframe, vid_source->buf.index);
pthread_sigmask(SIG_UNBLOCK, &old, NULL); /*undo the signal blocking */