mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-03-16 20:43:42 +00:00
minor fix for b101
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <errno.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
@@ -432,7 +433,11 @@ static void _device_open_hw_fps(struct device_t *dev) {
|
|||||||
|
|
||||||
LOG_DEBUG("Calling ioctl(VIDIOC_G_PARM) ...");
|
LOG_DEBUG("Calling ioctl(VIDIOC_G_PARM) ...");
|
||||||
if (xioctl(dev->run->fd, VIDIOC_G_PARM, &setfps) < 0) {
|
if (xioctl(dev->run->fd, VIDIOC_G_PARM, &setfps) < 0) {
|
||||||
LOG_PERROR("Unable to query HW FPS changing");
|
if (errno == ENOTTY) { // Quiet message for Auvidea B101
|
||||||
|
LOG_INFO("Quierying HW FPS changing is not supported");
|
||||||
|
} else {
|
||||||
|
LOG_PERROR("Unable to query HW FPS changing");
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -454,7 +459,7 @@ static void _device_open_hw_fps(struct device_t *dev) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (dev->desired_fps != SETFPS_TPF(denominator)) {
|
if (dev->desired_fps != SETFPS_TPF(denominator)) {
|
||||||
LOG_INFO("Using HW FPS (coerced): %u -> %u", dev->desired_fps, SETFPS_TPF(denominator));
|
LOG_INFO("Using HW FPS: %u -> %u (coerced)", dev->desired_fps, SETFPS_TPF(denominator));
|
||||||
} else {
|
} else {
|
||||||
LOG_INFO("Using HW FPS: %u", dev->desired_fps);
|
LOG_INFO("Using HW FPS: %u", dev->desired_fps);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user