diff options
author | Brandon Philips <brandon@ifup.org> | 2008-04-02 17:10:57 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 13:07:57 -0400 |
commit | b608f4323a0e0440d18fa13aea3db98351137487 (patch) | |
tree | 7dc4a7cec476874ca6bf2c8fbbae9b58d61f70ff /drivers/media/video/videobuf-core.c | |
parent | 8eb8ff3870ede23b2328ef376023a3542efcb9a5 (diff) |
V4L/DVB (7487): videobuf: Wakeup queues after changing the state to ERROR
The waitqueues must be woken up every time state changes.
Signed-off-by: Brandon Philips <bphilips@suse.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/videobuf-core.c')
-rw-r--r-- | drivers/media/video/videobuf-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/videobuf-core.c b/drivers/media/video/videobuf-core.c index fe742fdfae07..e4a864e0d96b 100644 --- a/drivers/media/video/videobuf-core.c +++ b/drivers/media/video/videobuf-core.c | |||
@@ -204,6 +204,7 @@ void videobuf_queue_cancel(struct videobuf_queue *q) | |||
204 | if (q->bufs[i]->state == VIDEOBUF_QUEUED) { | 204 | if (q->bufs[i]->state == VIDEOBUF_QUEUED) { |
205 | list_del(&q->bufs[i]->queue); | 205 | list_del(&q->bufs[i]->queue); |
206 | q->bufs[i]->state = VIDEOBUF_ERROR; | 206 | q->bufs[i]->state = VIDEOBUF_ERROR; |
207 | wake_up_all(&q->bufs[i]->done); | ||
207 | } | 208 | } |
208 | } | 209 | } |
209 | if (q->irqlock) | 210 | if (q->irqlock) |