mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-10-01 13:44:40 +00:00
v4l2: only accept CAPTURE buffer types in try_fmt
This commit is contained in:
parent
5a262b4bd3
commit
8900722f55
|
@ -1520,6 +1520,9 @@ static int try_format(struct file *file, struct v4l2_format *fmt)
|
|||
int best = -1;
|
||||
|
||||
pw_log_info("in: type: %u", fmt->type);
|
||||
if (fmt->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
|
||||
return -EINVAL;
|
||||
|
||||
pw_log_info("in: format: %.4s", (char*)&fmt->fmt.pix.pixelformat);
|
||||
pw_log_info("in: width: %u", fmt->fmt.pix.width);
|
||||
pw_log_info("in: height: %u", fmt->fmt.pix.height);
|
||||
|
|
Loading…
Reference in a new issue