mirror of
https://github.com/X11Libre/xf86-video-v4l.git
synced 2026-03-24 01:25:19 +00:00
Return BadMatch if a Port Attribute is not found
Fix a small non-compliance issue: if a port attribute is not known, according with Xv specs, it should return BadMatch, and not BadValue. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
@@ -790,6 +790,8 @@ V4lSetPortAttribute(ScrnInfoPtr pScrn,
|
||||
/* not mine -> pass to yuv scaler driver */
|
||||
if (0 != pPPriv->yuv_format && pPPriv->myfmt->setAttribute)
|
||||
ret = pPPriv->myfmt->setAttribute(pScrn, attribute, value);
|
||||
else
|
||||
ret = BadMatch;
|
||||
goto err;
|
||||
}
|
||||
if (pPPriv->XvV4LCtrl[i].qctrl.flags & V4L2_CTRL_FLAG_DISABLED)
|
||||
@@ -839,6 +841,8 @@ V4lGetPortAttribute(ScrnInfoPtr pScrn,
|
||||
/* not mine -> pass to yuv scaler driver */
|
||||
if (0 != pPPriv->yuv_format && pPPriv->myfmt->getAttribute)
|
||||
ret = pPPriv->myfmt->getAttribute(pScrn, attribute, value);
|
||||
else
|
||||
ret = BadMatch;
|
||||
goto err;
|
||||
}
|
||||
if (pPPriv->XvV4LCtrl[i].qctrl.flags & V4L2_CTRL_FLAG_DISABLED)
|
||||
|
||||
Reference in New Issue
Block a user