mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
[Bugfix] V4L2 used screen resolution for fallback
https://hyperion-project.org/threads/ng-hyperion-v4l2-capture-resolution-issue.3684/#post-15959
This commit is contained in:
parent
b1fa085d64
commit
782d44b81b
@ -617,8 +617,16 @@ void V4L2Grabber::init_device(VideoStandard videoStandard, int input)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// set the settings
|
// set the settings
|
||||||
|
if (max_width != 0 || max_height != 0)
|
||||||
|
{
|
||||||
fmt.fmt.pix.width = max_width;
|
fmt.fmt.pix.width = max_width;
|
||||||
fmt.fmt.pix.height = max_height;
|
fmt.fmt.pix.height = max_height;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
fmt.fmt.pix.width = _width;
|
||||||
|
fmt.fmt.pix.height = _height;
|
||||||
|
}
|
||||||
|
|
||||||
if (-1 == xioctl(VIDIOC_S_FMT, &fmt))
|
if (-1 == xioctl(VIDIOC_S_FMT, &fmt))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user