Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124177
b: refs/heads/master
c: a56a18c
h: refs/heads/master
i:
  124175: de02b24
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Dec 29, 2008
1 parent 4c5745a commit 129261b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 74d83fa0241f603a4067f071a88ef8b9a7c415a0
refs/heads/master: a56a18c3ed3442a0c049c9b5f0dda918a6e83726
15 changes: 15 additions & 0 deletions trunk/drivers/media/video/v4l2-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1479,9 +1479,15 @@ static int __video_do_ioctl(struct file *file,
case VIDIOC_G_CROP:
{
struct v4l2_crop *p = arg;
__u32 type;

if (!ops->vidioc_g_crop)
break;

type = p->type;
memset(p, 0, sizeof(*p));
p->type = type;

dbgarg(cmd, "type=%s\n", prt_names(p->type, v4l2_type_names));
ret = ops->vidioc_g_crop(file, fh, p);
if (!ret)
Expand All @@ -1502,10 +1508,16 @@ static int __video_do_ioctl(struct file *file,
case VIDIOC_CROPCAP:
{
struct v4l2_cropcap *p = arg;
__u32 type;

/*FIXME: Should also show v4l2_fract pixelaspect */
if (!ops->vidioc_cropcap)
break;

type = p->type;
memset(p, 0, sizeof(*p));
p->type = type;

dbgarg(cmd, "type=%s\n", prt_names(p->type, v4l2_type_names));
ret = ops->vidioc_cropcap(file, fh, p);
if (!ret) {
Expand All @@ -1520,6 +1532,9 @@ static int __video_do_ioctl(struct file *file,

if (!ops->vidioc_g_jpegcomp)
break;

memset(p, 0, sizeof(*p));

ret = ops->vidioc_g_jpegcomp(file, fh, p);
if (!ret)
dbgarg(cmd, "quality=%d, APPn=%d, "
Expand Down

0 comments on commit 129261b

Please sign in to comment.