summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2014-05-12 13:14:47 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-13 19:32:03 +0100
commitd5958a9d13be0c7e521ad08b70dedddcfade6ff0 (patch)
treeb806f6826a59d1d1983cbf9a78053a07cc3d1d5a /meta/recipes-multimedia
parent40551859671a1c9da26cfdcda34da952c66ac8c2 (diff)
downloadpoky-d5958a9d13be0c7e521ad08b70dedddcfade6ff0.tar.gz
gst-openmax: fix build with GLib 2.40 onwards
GLib 2.40 adds g_ptr_array_insert, but gst-openmax is definining that as a static helper function. Rename the static function so it doesn't conflict with GLib's namespace. (From OE-Core rev: f453cd989b47677b863acda7a4627636f66436f4) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia')
-rw-r--r--meta/recipes-multimedia/gstreamer/gst-openmax/ptr-array.patch46
-rw-r--r--meta/recipes-multimedia/gstreamer/gst-openmax_0.10.1.bb1
2 files changed, 47 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gst-openmax/ptr-array.patch b/meta/recipes-multimedia/gstreamer/gst-openmax/ptr-array.patch
new file mode 100644
index 0000000000..5965bbafbb
--- /dev/null
+++ b/meta/recipes-multimedia/gstreamer/gst-openmax/ptr-array.patch
@@ -0,0 +1,46 @@
1Rename static functions that use GLib naming conventions as one of them
2(g_ptr_array_insert) has now been added to GLib.
3
4Upstream-Status: Pending
5Signed-off-by: Ross Burton <ross.burton@intel.com>
6
7diff --git a/omx/gstomx_util.c b/omx/gstomx_util.c
8index 423e441..579dbf5 100644
9--- a/omx/gstomx_util.c
10+++ b/omx/gstomx_util.c
11@@ -85,7 +85,7 @@ static gboolean initialized;
12 */
13
14 static void
15-g_ptr_array_clear (GPtrArray * array)
16+omx_g_ptr_array_clear (GPtrArray * array)
17 {
18 guint index;
19 for (index = 0; index < array->len; index++)
20@@ -93,7 +93,7 @@ g_ptr_array_clear (GPtrArray * array)
21 }
22
23 static void
24-g_ptr_array_insert (GPtrArray * array, guint index, gpointer data)
25+omx_g_ptr_array_insert (GPtrArray * array, guint index, gpointer data)
26 {
27 if (index + 1 > array->len) {
28 g_ptr_array_set_size (array, index + 1);
29@@ -394,7 +394,7 @@ g_omx_core_unload (GOmxCore * core)
30 }
31
32 core_for_each_port (core, g_omx_port_free);
33- g_ptr_array_clear (core->ports);
34+ omx_g_ptr_array_clear (core->ports);
35 }
36
37 static inline GOmxPort *
38@@ -418,7 +418,7 @@ g_omx_core_new_port (GOmxCore * core, guint index)
39 }
40
41 port = g_omx_port_new (core, index);
42- g_ptr_array_insert (core->ports, index, port);
43+ omx_g_ptr_array_insert (core->ports, index, port);
44
45 return port;
46 }
diff --git a/meta/recipes-multimedia/gstreamer/gst-openmax_0.10.1.bb b/meta/recipes-multimedia/gstreamer/gst-openmax_0.10.1.bb
index ea3b66ba8c..4e22f46532 100644
--- a/meta/recipes-multimedia/gstreamer/gst-openmax_0.10.1.bb
+++ b/meta/recipes-multimedia/gstreamer/gst-openmax_0.10.1.bb
@@ -13,6 +13,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24 \
13 13
14SRC_URI = "http://gstreamer.freedesktop.org/src/gst-openmax/gst-openmax-${PV}.tar.bz2 \ 14SRC_URI = "http://gstreamer.freedesktop.org/src/gst-openmax/gst-openmax-${PV}.tar.bz2 \
15 file://gcc_4.6.patch \ 15 file://gcc_4.6.patch \
16 file://ptr-array.patch \
16 " 17 "
17 18
18inherit autotools 19inherit autotools