v4l2: clear DISCONT flag when recycling buffers into the buffer pool
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 3 Mar 2012 13:04:48 +0000 (13:04 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 3 Mar 2012 13:07:45 +0000 (13:07 +0000)
commit6f707fcbca2c60aed565247567bafdd168980161
tree521b3bcc7fb2e9ede1e95e7ea8ba02f9313de14a
parent4cd9255f0a8a9e15d81561f00f02d275b5095f70
v4l2: clear DISCONT flag when recycling buffers into the buffer pool

The base class may have set the DISCONT flag on the first buffer pushed
out. We need to clear that when recycling buffers back into the buffer
pool, otherwise we constantly push out buffers with the discont flag
set, which might upset downstream elements, esp. for compressed
formats like mpeg-ts.
sys/v4l2/gstv4l2bufferpool.c