summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-05-11 20:02:24 -0700
committerAndrei Gherzan <andrei@gherzan.com>2018-05-12 11:16:15 +0100
commit5492c68403fdd6fe6edd95e44532dcfd116cc832 (patch)
tree11b9ab19f28af75e5ef3205eed32394dd73af2db
parent53af636f88d13141e70e53bc33d571a207122b03 (diff)
downloadmeta-raspberrypi-5492c68403fdd6fe6edd95e44532dcfd116cc832.tar.gz
gstreamer1.0-omx: Forward port bbappend to 1.14
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-omx-1.12/0002-fix-decoder-flushing.patch23
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-omx-1.12/0005-Don-t-abort-gst_omx_video_dec_set_format-if-there-s-.patch27
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-omx-1.14/0001-Don-t-try-to-acquire-buffer-when-src-pad-isn-t-activ.patch (renamed from recipes-multimedia/gstreamer/gstreamer1.0-omx-1.12/0001-Don-t-try-to-acquire-buffer-when-src-pad-isn-t-activ.patch)0
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-omx-1.14/0001-config-files-path.patch (renamed from recipes-multimedia/gstreamer/gstreamer1.0-omx-1.12/0001-config-files-path.patch)0
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-omx-1.14/0003-no-timeout-on-get-state.patch (renamed from recipes-multimedia/gstreamer/gstreamer1.0-omx-1.12/0003-no-timeout-on-get-state.patch)0
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-omx-1.14/0004-Properly-handle-drain-requests-while-flushing.patch (renamed from recipes-multimedia/gstreamer/gstreamer1.0-omx-1.12/0004-Properly-handle-drain-requests-while-flushing.patch)10
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-omx-1.14/0005-Don-t-abort-gst_omx_video_dec_set_format-if-there-s-.patch24
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-omx_%.bbappend4
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-omx_1.14%.bbappend (renamed from recipes-multimedia/gstreamer/gstreamer1.0-omx_1.12%.bbappend)3
9 files changed, 32 insertions, 59 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.12/0002-fix-decoder-flushing.patch b/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.12/0002-fix-decoder-flushing.patch
deleted file mode 100644
index 122ddb3..0000000
--- a/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.12/0002-fix-decoder-flushing.patch
+++ /dev/null
@@ -1,23 +0,0 @@
1From fc4773f36aa31b4ae0fc97d3aa3f94db0c88f194 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 11 Feb 2016 12:53:20 -0800
4
5---
6 omx/gstomx.c | 4 ++--
7 1 file changed, 2 insertions(+), 2 deletions(-)
8
9diff --git a/omx/gstomx.c b/omx/gstomx.c
10index 0237f3c..45732c3 100644
11--- a/omx/gstomx.c
12+++ b/omx/gstomx.c
13@@ -1538,8 +1538,8 @@ gst_omx_port_set_flushing (GstOMXPort * port, GstClockTime timeout,
14 last_error = OMX_ErrorNone;
15 gst_omx_component_handle_messages (comp);
16 while (signalled && last_error == OMX_ErrorNone && !port->flushed
17- && port->buffers
18- && port->buffers->len > g_queue_get_length (&port->pending_buffers)) {
19+ /* && port->buffers
20+ && port->buffers->len > g_queue_get_length (&port->pending_buffers) */) {
21 signalled = gst_omx_component_wait_message (comp, timeout);
22 if (signalled)
23 gst_omx_component_handle_messages (comp);
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.12/0005-Don-t-abort-gst_omx_video_dec_set_format-if-there-s-.patch b/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.12/0005-Don-t-abort-gst_omx_video_dec_set_format-if-there-s-.patch
deleted file mode 100644
index fdfdd1b..0000000
--- a/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.12/0005-Don-t-abort-gst_omx_video_dec_set_format-if-there-s-.patch
+++ /dev/null
@@ -1,27 +0,0 @@
1From 0d2ad639e6158c8023c157e206ef3ff7abdc089c Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Enrique=20Oca=C3=B1a=20Gonz=C3=A1lez?= <eocanha@igalia.com>
3Date: Fri, 4 Dec 2015 18:39:59 +0100
4Subject: [PATCH] Don't abort gst_omx_video_dec_set_format() if there's a
5 timeout releasing the buffers taken by the egl_render out port
6
7---
8 omx/gstomxvideodec.c | 5 ++++-
9 1 file changed, 4 insertions(+), 1 deletion(-)
10
11diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c
12index bad6335..c63b972 100644
13--- a/omx/gstomxvideodec.c
14+++ b/omx/gstomxvideodec.c
15@@ -1911,8 +1911,11 @@ gst_omx_video_dec_set_format (GstVideoDecoder * decoder,
16 5 * GST_SECOND) != OMX_ErrorNone)
17 return FALSE;
18 if (gst_omx_port_wait_buffers_released (out_port,
19- 1 * GST_SECOND) != OMX_ErrorNone)
20+ 1 * GST_SECOND) != OMX_ErrorNone) {
21+#if !(defined (USE_OMX_TARGET_RPI) && defined (HAVE_GST_GL))
22 return FALSE;
23+#endif
24+ }
25 if (gst_omx_port_deallocate_buffers (self->dec_in_port) != OMX_ErrorNone)
26 return FALSE;
27 if (gst_omx_video_dec_deallocate_output_buffers (self) != OMX_ErrorNone)
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.12/0001-Don-t-try-to-acquire-buffer-when-src-pad-isn-t-activ.patch b/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.14/0001-Don-t-try-to-acquire-buffer-when-src-pad-isn-t-activ.patch
index 85fea67..85fea67 100644
--- a/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.12/0001-Don-t-try-to-acquire-buffer-when-src-pad-isn-t-activ.patch
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.14/0001-Don-t-try-to-acquire-buffer-when-src-pad-isn-t-activ.patch
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.12/0001-config-files-path.patch b/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.14/0001-config-files-path.patch
index 6903c17..6903c17 100644
--- a/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.12/0001-config-files-path.patch
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.14/0001-config-files-path.patch
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.12/0003-no-timeout-on-get-state.patch b/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.14/0003-no-timeout-on-get-state.patch
index 4124bcc..4124bcc 100644
--- a/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.12/0003-no-timeout-on-get-state.patch
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.14/0003-no-timeout-on-get-state.patch
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.12/0004-Properly-handle-drain-requests-while-flushing.patch b/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.14/0004-Properly-handle-drain-requests-while-flushing.patch
index b02072a..3c9dd2c 100644
--- a/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.12/0004-Properly-handle-drain-requests-while-flushing.patch
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.14/0004-Properly-handle-drain-requests-while-flushing.patch
@@ -10,11 +10,11 @@ the drain request, leaving the decoder input thread waiting forever.
10 omx/gstomx.c | 7 +++++++ 10 omx/gstomx.c | 7 +++++++
11 1 file changed, 7 insertions(+) 11 1 file changed, 7 insertions(+)
12 12
13diff --git a/omx/gstomx.c b/omx/gstomx.c 13Index: gst-omx-1.14.0/omx/gstomx.c
14index 45732c3..784a5d7 100644 14===================================================================
15--- a/omx/gstomx.c 15--- gst-omx-1.14.0.orig/omx/gstomx.c
16+++ b/omx/gstomx.c 16+++ gst-omx-1.14.0/omx/gstomx.c
17@@ -737,6 +737,13 @@ gst_omx_component_new (GstObject * parent, const gchar * core_name, 17@@ -837,6 +837,13 @@ gst_omx_component_new (GstObject * paren
18 18
19 g_mutex_lock (&comp->lock); 19 g_mutex_lock (&comp->lock);
20 gst_omx_component_handle_messages (comp); 20 gst_omx_component_handle_messages (comp);
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.14/0005-Don-t-abort-gst_omx_video_dec_set_format-if-there-s-.patch b/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.14/0005-Don-t-abort-gst_omx_video_dec_set_format-if-there-s-.patch
new file mode 100644
index 0000000..ed8645e
--- /dev/null
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-omx-1.14/0005-Don-t-abort-gst_omx_video_dec_set_format-if-there-s-.patch
@@ -0,0 +1,24 @@
1From 0d2ad639e6158c8023c157e206ef3ff7abdc089c Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Enrique=20Oca=C3=B1a=20Gonz=C3=A1lez?= <eocanha@igalia.com>
3Date: Fri, 4 Dec 2015 18:39:59 +0100
4Subject: [PATCH] Don't abort gst_omx_video_dec_set_format() if there's a
5 timeout releasing the buffers taken by the egl_render out port
6
7---
8 omx/gstomxvideodec.c | 5 ++++-
9 1 file changed, 4 insertions(+), 1 deletion(-)
10
11Index: gst-omx-1.14.0/omx/gstomxvideodec.c
12===================================================================
13--- gst-omx-1.14.0.orig/omx/gstomxvideodec.c
14+++ gst-omx-1.14.0/omx/gstomxvideodec.c
15@@ -2214,7 +2214,9 @@ gst_omx_video_dec_disable (GstOMXVideoDe
16 return FALSE;
17 if (gst_omx_port_wait_buffers_released (out_port,
18 1 * GST_SECOND) != OMX_ErrorNone)
19+#if !(defined (USE_OMX_TARGET_RPI) && defined (HAVE_GST_GL))
20 return FALSE;
21+#endif
22 if (gst_omx_video_dec_deallocate_output_buffers (self) != OMX_ErrorNone)
23 return FALSE;
24 if (gst_omx_port_wait_enabled (out_port, 1 * GST_SECOND) != OMX_ErrorNone)
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-omx_%.bbappend b/recipes-multimedia/gstreamer/gstreamer1.0-omx_%.bbappend
index 67e46de..0ee00c2 100644
--- a/recipes-multimedia/gstreamer/gstreamer1.0-omx_%.bbappend
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-omx_%.bbappend
@@ -1,5 +1,5 @@
1GSTREAMER_1_0_OMX_TARGET_rpi = "rpi" 1GSTREAMER_1_0_OMX_TARGET_rpi = "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "bellagio", "rpi", d)}"
2GSTREAMER_1_0_OMX_CORE_NAME_rpi = "${libdir}/libopenmaxil.so" 2GSTREAMER_1_0_OMX_CORE_NAME_rpi = "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "", "${libdir}/libomxil-bellagio.so.0", d)}"
3 3
4 4
5# How to make this RPI specific? 5# How to make this RPI specific?
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-omx_1.12%.bbappend b/recipes-multimedia/gstreamer/gstreamer1.0-omx_1.14%.bbappend
index 93381a4..cb7986b 100644
--- a/recipes-multimedia/gstreamer/gstreamer1.0-omx_1.12%.bbappend
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-omx_1.14%.bbappend
@@ -4,10 +4,9 @@
4SRC_URI_append_rpi = " \ 4SRC_URI_append_rpi = " \
5 file://0001-config-files-path.patch \ 5 file://0001-config-files-path.patch \
6 file://0001-Don-t-try-to-acquire-buffer-when-src-pad-isn-t-activ.patch \ 6 file://0001-Don-t-try-to-acquire-buffer-when-src-pad-isn-t-activ.patch \
7 file://0002-fix-decoder-flushing.patch \
8 file://0003-no-timeout-on-get-state.patch \ 7 file://0003-no-timeout-on-get-state.patch \
9 file://0004-Properly-handle-drain-requests-while-flushing.patch \ 8 file://0004-Properly-handle-drain-requests-while-flushing.patch \
10 file://0005-Don-t-abort-gst_omx_video_dec_set_format-if-there-s-.patch \ 9 file://0005-Don-t-abort-gst_omx_video_dec_set_format-if-there-s-.patch \
11" 10"
12 11
13FILESEXTRAPATHS_prepend := "${THISDIR}/gstreamer1.0-omx-1.12:" 12FILESEXTRAPATHS_prepend := "${THISDIR}/gstreamer1.0-omx-1.14:"