Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103845
b: refs/heads/master
c: 8bfb9b1
h: refs/heads/master
i:
  103843: 7240ba0
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Jul 20, 2008
1 parent 1b785f7 commit b09c4c7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3b6fe58f0f18880200969e813d0181d1bdab0966
refs/heads/master: 8bfb9b1ce62757b8dea07c239efbbeec7bac811a
27 changes: 16 additions & 11 deletions trunk/drivers/media/video/videodev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1616,26 +1616,26 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
}
case VIDIOC_ENCODER_CMD:
{
struct v4l2_encoder_cmd *p=arg;
struct v4l2_encoder_cmd *p = arg;

if (!vfd->vidioc_encoder_cmd)
break;
ret=vfd->vidioc_encoder_cmd(file, fh, p);
memset(&p->raw, 0, sizeof(p->raw));
ret = vfd->vidioc_encoder_cmd(file, fh, p);
if (!ret)
dbgarg (cmd, "cmd=%d, flags=%d\n",
p->cmd,p->flags);
dbgarg(cmd, "cmd=%d, flags=%x\n", p->cmd, p->flags);
break;
}
case VIDIOC_TRY_ENCODER_CMD:
{
struct v4l2_encoder_cmd *p=arg;
struct v4l2_encoder_cmd *p = arg;

if (!vfd->vidioc_try_encoder_cmd)
break;
ret=vfd->vidioc_try_encoder_cmd(file, fh, p);
memset(&p->raw, 0, sizeof(p->raw));
ret = vfd->vidioc_try_encoder_cmd(file, fh, p);
if (!ret)
dbgarg (cmd, "cmd=%d, flags=%d\n",
p->cmd,p->flags);
dbgarg(cmd, "cmd=%d, flags=%x\n", p->cmd, p->flags);
break;
}
case VIDIOC_G_PARM:
Expand Down Expand Up @@ -1738,12 +1738,17 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
}
case VIDIOC_G_SLICED_VBI_CAP:
{
struct v4l2_sliced_vbi_cap *p=arg;
struct v4l2_sliced_vbi_cap *p = arg;
__u32 type = p->type;

if (!vfd->vidioc_g_sliced_vbi_cap)
break;
ret=vfd->vidioc_g_sliced_vbi_cap(file, fh, p);
memset(p, 0, sizeof(*p));
p->type = type;
ret = vfd->vidioc_g_sliced_vbi_cap(file, fh, p);
if (!ret)
dbgarg (cmd, "service_set=%d\n", p->service_set);
dbgarg(cmd, "type=%d, service_set=%d\n",
p->type, p->service_set);
break;
}
case VIDIOC_LOG_STATUS:
Expand Down

0 comments on commit b09c4c7

Please sign in to comment.