mirror of
https://github.com/Motion-Project/motion.git
synced 2026-04-17 20:47:10 -04:00
Revise messages for fps on v4l2 devices
This commit is contained in:
@@ -1569,14 +1569,13 @@ static int v4l2_fps_set(struct context *cnt, struct video_dev *curdev)
|
||||
|
||||
retcd = xioctl(vid_source, VIDIOC_S_PARM, &setfps);
|
||||
if (retcd != 0) {
|
||||
MOTION_LOG(ERR, TYPE_VIDEO, NO_ERRNO
|
||||
,_("Error setting fps. Return code %d"), retcd);
|
||||
MOTION_LOG(NTC, TYPE_VIDEO, NO_ERRNO
|
||||
,_("Could not set the fps on the device."));
|
||||
} else {
|
||||
MOTION_LOG(INF, TYPE_VIDEO, NO_ERRNO
|
||||
, _("Device set fps to %d")
|
||||
, setfps.parm.capture.timeperframe.denominator);
|
||||
}
|
||||
|
||||
MOTION_LOG(INF, TYPE_VIDEO, NO_ERRNO
|
||||
, _("Device set fps to %d")
|
||||
, setfps.parm.capture.timeperframe.denominator);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user