Fix most for kernel 4.14
[AGL/meta-agl-demo.git] / recipes-graphics / wayland / weston / 0004-gst-record-Specify-bytesused-and-length-of-VSP-input.patch
index 925d3a4..8b0d44a 100644 (file)
@@ -1,19 +1,19 @@
-From 28a72656562930d27ef8117a489f8299537bdfb8 Mon Sep 17 00:00:00 2001
+From 90a51301038e492875ac02ed48fa86e699849e06 Mon Sep 17 00:00:00 2001
 From: Damian Hobson-Garcia <dhobsong@igel.co.jp>
 Date: Tue, 9 May 2017 18:07:52 +0900
-Subject: [PATCH] gst-record: Specify bytesused and length of VSP input buffer
+Subject: [PATCH 4/4] gst-record: Specify bytesused and length of VSP input
+ buffer
 
 The bytesused=0 setting has been deprecated in newer kernels.
-
 ---
src/gst-recorder.c | 8 ++++++--
libweston/gst-recorder.c | 8 ++++++--
  1 file changed, 6 insertions(+), 2 deletions(-)
 
-diff --git a/src/gst-recorder.c b/src/gst-recorder.c
-index f6d12f8..de74250 100644
---- a/src/gst-recorder.c
-+++ b/src/gst-recorder.c
-@@ -487,7 +487,7 @@ vsp_request_buffers(vsp_data_t *vsp, vsp_port_n port, unsigned int num)
+diff --git a/libweston/gst-recorder.c b/libweston/gst-recorder.c
+index d2cf8dc..7dafd95 100644
+--- a/libweston/gst-recorder.c
++++ b/libweston/gst-recorder.c
+@@ -484,7 +484,7 @@ vsp_request_buffers(vsp_data_t *vsp, vsp_port_n port, unsigned int num)
  
  /* ...enqueue dmafd buffer */
  static int
@@ -22,7 +22,7 @@ index f6d12f8..de74250 100644
  {
        vsp_media_pad_t    *pad = &vsp->input;
        struct v4l2_buffer  buf;
-@@ -502,6 +502,8 @@ vsp_input_buffer_queue_dmafd(vsp_data_t *vsp, int i, int dmafd)
+@@ -499,6 +499,8 @@ vsp_input_buffer_queue_dmafd(vsp_data_t *vsp, int i, int dmafd)
        buf.m.planes = planes;
        buf.length = 1;
        buf.m.planes[0].m.fd = dmafd;
@@ -57,5 +57,5 @@ index f6d12f8..de74250 100644
                goto err_vsp;
        }
 -- 
-1.9.1
+2.9.2