summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/wayland/weston/0004-gst-record-Specify-bytesused-and-length-of-VSP-input.patch
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@iot.bzh>2017-08-21 10:16:17 +0000
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2017-09-18 03:46:01 +0000
commit4c5676167f81a669d46379a66ba2efbd512b25cd (patch)
treee6f8bf35a3ed0bbf1d576a4eb111f247a5959501 /recipes-graphics/wayland/weston/0004-gst-record-Specify-bytesused-and-length-of-VSP-input.patch
parentebf8bdee9f1a9d5da1b298912fa9115b5b99fbc8 (diff)
Revert "Add gst-recorder implementation"
This reverts commit 562c0c1bb2ef74ccbfda1bae4f84a61828119674. Conflicts: recipes-graphics/wayland/weston_%.bbappend Change-Id: I7b6e5a3969fc89c8279d47aaaf4f68a7544a181b Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
Diffstat (limited to 'recipes-graphics/wayland/weston/0004-gst-record-Specify-bytesused-and-length-of-VSP-input.patch')
-rw-r--r--recipes-graphics/wayland/weston/0004-gst-record-Specify-bytesused-and-length-of-VSP-input.patch61
1 files changed, 0 insertions, 61 deletions
diff --git a/recipes-graphics/wayland/weston/0004-gst-record-Specify-bytesused-and-length-of-VSP-input.patch b/recipes-graphics/wayland/weston/0004-gst-record-Specify-bytesused-and-length-of-VSP-input.patch
deleted file mode 100644
index 925d3a43e..000000000
--- a/recipes-graphics/wayland/weston/0004-gst-record-Specify-bytesused-and-length-of-VSP-input.patch
+++ /dev/null
@@ -1,61 +0,0 @@
-From 28a72656562930d27ef8117a489f8299537bdfb8 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
-
-The bytesused=0 setting has been deprecated in newer kernels.
-
----
- src/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)
-
- /* ...enqueue dmafd buffer */
- static int
--vsp_input_buffer_queue_dmafd(vsp_data_t *vsp, int i, int dmafd)
-+vsp_input_buffer_queue_dmafd(vsp_data_t *vsp, int i, int dmafd, int bytesused)
- {
- 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)
- buf.m.planes = planes;
- buf.length = 1;
- buf.m.planes[0].m.fd = dmafd;
-+ buf.m.planes[0].bytesused = bytesused;
-+ buf.m.planes[0].length = bytesused;
-
- /* ...submit buffer */
- if (ioctl(pad->fd, VIDIOC_QBUF, &buf) < 0) {
-@@ -1098,6 +1100,7 @@ gst_recorder_process_dmafd(struct gst_recorder *r, int fd, int stride)
- GstMapInfo info;
- int ysize;
- int csize;
-+ int rgbsize;
-
- /* get GST buffer */
- if (gst_recorder_omx_buffer_acquire(r, &buf, &info) < 0) {
-@@ -1111,6 +1114,7 @@ gst_recorder_process_dmafd(struct gst_recorder *r, int fd, int stride)
- #else
- csize = ysize / 2;
- #endif
-+ rgbsize = stride * r->set->height;
-
- pthread_mutex_lock(&r->vsp->mutex);
- /* setup vsp */
-@@ -1139,7 +1143,7 @@ gst_recorder_process_dmafd(struct gst_recorder *r, int fd, int stride)
- }
-
- /* queue input vsp buffer */
-- if (vsp_input_buffer_queue_dmafd(r->vsp, 0, fd) < 0) {
-+ if (vsp_input_buffer_queue_dmafd(r->vsp, 0, fd, rgbsize) < 0) {
- weston_log("VSP: failed to queue input buffer\n");
- goto err_vsp;
- }
---
-1.9.1
-