Commit 775d319e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

v4l2: do not warn about unsupported CROPCAP, only print debug

CROPCAP is no longer mandatory, and many drivers failed to provide it.
If there is no CROPCAP, then there is no cropping.
parent bc3dd56d
...@@ -216,8 +216,8 @@ static int ResetCrop (vlc_object_t *obj, int fd) ...@@ -216,8 +216,8 @@ static int ResetCrop (vlc_object_t *obj, int fd)
* In practice, it does not. */ * In practice, it does not. */
if (v4l2_ioctl (fd, VIDIOC_CROPCAP, &cropcap) < 0) if (v4l2_ioctl (fd, VIDIOC_CROPCAP, &cropcap) < 0)
{ {
msg_Warn (obj, "cannot get cropping properties: %m"); msg_Dbg (obj, "cannot get cropping properties: %m");
return -1; return 0;
} }
/* Reset to the default cropping rectangle */ /* Reset to the default cropping rectangle */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment