All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] v4l2: Change call of function in videobuf2-core.c
@ 2014-08-04  3:25 Nicholas Krause
  2014-08-04  4:07 ` Dave Airlie
  2014-08-04  5:03 ` Hans Verkuil
  0 siblings, 2 replies; 10+ messages in thread
From: Nicholas Krause @ 2014-08-04  3:25 UTC (permalink / raw)
  To: udovdh; +Cc: linux-media, linux-kernel

This patch changes the call of vb2_buffer_core to use VB2_BUFFER_STATE_ACTIVE
inside the for instead of not setting in correctly to VB2_BUFFER_STATE_ERROR.

Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
---
 drivers/media/v4l2-core/videobuf2-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/v4l2-core/videobuf2-core.c b/drivers/media/v4l2-core/videobuf2-core.c
index 7c4489c..08e478b 100644
--- a/drivers/media/v4l2-core/videobuf2-core.c
+++ b/drivers/media/v4l2-core/videobuf2-core.c
@@ -2115,7 +2115,7 @@ static void __vb2_queue_cancel(struct vb2_queue *q)
 	if (WARN_ON(atomic_read(&q->owned_by_drv_count))) {
 		for (i = 0; i < q->num_buffers; ++i)
 			if (q->bufs[i]->state == VB2_BUF_STATE_ACTIVE)
-				vb2_buffer_done(q->bufs[i], VB2_BUF_STATE_ERROR);
+				vb2_buffer_done(q->bufs[i], VB2_BUF_STATE_ACTIVE);
 		/* Must be zero now */
 		WARN_ON(atomic_read(&q->owned_by_drv_count));
 	}
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-08-04 11:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-04  3:25 [PATCH] v4l2: Change call of function in videobuf2-core.c Nicholas Krause
2014-08-04  4:07 ` Dave Airlie
2014-08-04  5:03 ` Hans Verkuil
2014-08-04  5:07   ` Nick Krause
2014-08-04  5:38   ` Dave Airlie
2014-08-04  5:43     ` Nick Krause
2014-08-04  5:50       ` Nick Krause
2014-08-04  5:54         ` Dave Airlie
2014-08-04  5:59           ` Nick Krause
2014-08-04 11:48     ` Theodore Ts'o

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.