Patchwork [1/1] gst-plugins-good: Add patch to fix compilation issues from newer kernels

login
register
mail settings
Submitter christian.braunersorensen@prevas.dk
Date Dec. 19, 2012, 9:35 a.m.
Message ID <885d681d26c299904e910c663d68dbf67f72c1a6.1355909647.git.christian.braunersorensen@prevas.dk>
Download mbox | patch
Permalink /patch/207275/
State Rejected
Delegated to: Christian Sørensen
Headers show

Comments

christian.braunersorensen@prevas.dk - Dec. 19, 2012, 9:35 a.m.
From: Christian Sørensen <christian.braunersorensen@prevas.dk>

Thanks to openembedded, since the patch is taken from:
http://patches.openembedded.org/patch/35979/
---
 ...-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"