Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92643
b: refs/heads/master
c: 0ea13e6
h: refs/heads/master
i:
  92641: 35f623b
  92639: f87ba2d
v: v3
  • Loading branch information
Aidan Thornton authored and Mauro Carvalho Chehab committed Apr 24, 2008
1 parent f23931f commit 2a98746
Show file tree
Hide file tree
Showing 2 changed files with 7 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: b957dfdc3161d00b01b52154eb2d53580c8911e5
refs/heads/master: 0ea13e6e59853cab9e8ed3ac231ec5d44d8386a6
6 changes: 6 additions & 0 deletions trunk/drivers/media/video/em28xx/em28xx-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,12 @@ static int vidioc_s_fmt_cap(struct file *file, void *priv,
goto out;
}

if (dev->stream_on && !fh->stream_on) {
em28xx_errdev("%s device in use by another fh\n", __func__);
rc = -EBUSY;
goto out;
}

/* set new image size */
dev->width = f->fmt.pix.width;
dev->height = f->fmt.pix.height;
Expand Down

0 comments on commit 2a98746

Please sign in to comment.