Patchwork [1/4] add fix for gst plugins good for newer kernels. Removes debug line => backwards compatible

login
register
mail settings
Submitter christian.braunersorensen@prevas.dk
Date Feb. 27, 2013, 11:45 a.m.
Message ID <145efc703390d99bb1c43f6070abc504f9e1b42c.1361965429.git.christian.braunersorensen@prevas.dk>
Download mbox | patch
Permalink /patch/223585/
State Accepted
Delegated to: Christian Sørensen
Headers show

Comments

christian.braunersorensen@prevas.dk - Feb. 27, 2013, 11:45 a.m.
From: Christian Sørensen <christian.braunersorensen@prevas.dk>

---
 ...-fix-build-with-recent-kernels-the-v4l2_buffer-i.patch | 15 +++++++++++++++
 recipes/gstreamer/gst-plugins-good_0.10.31.oe             |  1 +
 2 files changed, 16 insertions(+)
 create mode 100644 recipes/gstreamer/gst-plugins-good/0001-v4l2-fix-build-with-recent-kernels-the-v4l2_buffer-i.patch

Patch

diff --git a/recipes/gstreamer/gst-plugins-good/0001-v4l2-fix-build-with-recent-kernels-the-v4l2_buffer-i.patch b/recipes/gstreamer/gst-plugins-good/0001-v4l2-fix-build-with-recent-kernels-the-v4l2_buffer-i.patch
new file mode 100644
index 0000000..baa1bc9
--- /dev/null
+++ b/recipes/gstreamer/gst-plugins-good/0001-v4l2-fix-build-with-recent-kernels-the-v4l2_buffer-i.patch
@@ -0,0 +1,15 @@ 
+diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c
+index b81c6a4..51cc0ce 100644
+--- a/sys/v4l2/gstv4l2bufferpool.c
++++ b/sys/v4l2/gstv4l2bufferpool.c
+@@ -181,7 +181,6 @@ gst_v4l2_buffer_new (GstV4l2BufferPool * pool, guint index, GstCaps * caps)
+     GST_LOG_OBJECT (pool->v4l2elem, "  MMAP offset:  %u",
+         ret->vbuffer.m.offset);
+   GST_LOG_OBJECT (pool->v4l2elem, "  length:    %u", ret->vbuffer.length);
+-  GST_LOG_OBJECT (pool->v4l2elem, "  input:     %u", ret->vbuffer.input);
+ 
+   data = (guint8 *) v4l2_mmap (0, ret->vbuffer.length,
+       PROT_READ | PROT_WRITE, MAP_SHARED, pool->video_fd,
+-- 
+1.7.6.5
+
diff --git a/recipes/gstreamer/gst-plugins-good_0.10.31.oe b/recipes/gstreamer/gst-plugins-good_0.10.31.oe
index f395067..8ad1e83 100644
--- a/recipes/gstreamer/gst-plugins-good_0.10.31.oe
+++ b/recipes/gstreamer/gst-plugins-good_0.10.31.oe
@@ -1,3 +1,4 @@ 
 LICENSE = "LGPL-2.1+"
 
 require ${PN}.inc
+SRC_URI += "file://0001-v4l2-fix-build-with-recent-kernels-the-v4l2_buffer-i.patch"