Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74828
b: refs/heads/master
c: 19fb145
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Dec 12, 2007
1 parent c5bb892 commit e8cd08a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 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: 4af75653031c6d454b4ace47c1536f0d2e727e3e
refs/heads/master: 19fb1457990b6b7e15586ec7331541a184233acc
14 changes: 13 additions & 1 deletion trunk/drivers/media/video/videobuf-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ ssize_t videobuf_read_one(struct videobuf_queue *q,
}

/* Locking: Caller holds q->lock */
int videobuf_read_start(struct videobuf_queue *q)
int __videobuf_read_start(struct videobuf_queue *q)
{
enum v4l2_field field;
unsigned long flags=0;
Expand Down Expand Up @@ -862,6 +862,17 @@ static void __videobuf_read_stop(struct videobuf_queue *q)

}

int videobuf_read_start(struct videobuf_queue *q)
{
int rc;

mutex_lock(&q->lock);
rc = __videobuf_read_start(q);
mutex_unlock(&q->lock);

return rc;
}

void videobuf_read_stop(struct videobuf_queue *q)
{
mutex_lock(&q->lock);
Expand Down Expand Up @@ -1058,6 +1069,7 @@ EXPORT_SYMBOL_GPL(videobuf_dqbuf);
EXPORT_SYMBOL_GPL(videobuf_streamon);
EXPORT_SYMBOL_GPL(videobuf_streamoff);

EXPORT_SYMBOL_GPL(videobuf_read_start);
EXPORT_SYMBOL_GPL(videobuf_read_stop);
EXPORT_SYMBOL_GPL(videobuf_stop);
EXPORT_SYMBOL_GPL(videobuf_read_stream);
Expand Down

0 comments on commit e8cd08a

Please sign in to comment.