Blame SOURCES/0002-clear_DISCONT_flag.patch

860d70
From 6f707fcbca2c60aed565247567bafdd168980161 Mon Sep 17 00:00:00 2001
860d70
From: Tim-Philipp Müller <tim.muller@collabora.co.uk>
860d70
Date: Sat, 03 Mar 2012 13:04:48 +0000
860d70
Subject: v4l2: clear DISCONT flag when recycling buffers into the buffer pool
860d70
860d70
The base class may have set the DISCONT flag on the first buffer pushed
860d70
out. We need to clear that when recycling buffers back into the buffer
860d70
pool, otherwise we constantly push out buffers with the discont flag
860d70
set, which might upset downstream elements, esp. for compressed
860d70
formats like mpeg-ts.
860d70
---
860d70
(limited to 'sys/v4l2')
860d70
860d70
diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c
860d70
index 51419ff..a0b4c84 100644
860d70
--- a/sys/v4l2/gstv4l2bufferpool.c
860d70
+++ b/sys/v4l2/gstv4l2bufferpool.c
860d70
@@ -98,6 +98,7 @@ gst_v4l2_buffer_finalize (GstV4l2Buffer * buffer)
860d70
     GST_LOG_OBJECT (pool->v4l2elem, "reviving buffer %p, %d", buffer, index);
860d70
     gst_buffer_ref (GST_BUFFER (buffer));
860d70
     GST_BUFFER_SIZE (buffer) = 0;
860d70
+    GST_BUFFER_FLAG_UNSET (buffer, GST_BUFFER_FLAG_DISCONT);
860d70
     pool->buffers[index] = buffer;
860d70
   }
860d70
 
860d70
--
860d70
cgit v0.9.0.2-2-gbebe