mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
v4l2: only accept CAPTURE buffer types in try_fmt
This commit is contained in:
parent
5a262b4bd3
commit
8900722f55
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue