summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad
diff options
context:
space:
mode:
authorYuqing Zhu <carol.zhu@nxp.com>2016-07-04 13:46:32 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-20 10:28:45 +0100
commitc62fd7586617cbd29e58dd2c78bcfdbc72b0dc9b (patch)
tree7d62dbe8ab59f750174b148ae3f2798f28d241e4 /meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad
parenta933b784ecaac12954885dd9777e640cb02506f4 (diff)
downloadpoky-c62fd7586617cbd29e58dd2c78bcfdbc72b0dc9b.tar.gz
gstreamer1.0-plugins-bad: Use the newer texture() function in glcolorconvert
GLES3 deprecates texture2D() and it does not work at all in newer versions than 3.3. The new function can fix it. (From OE-Core rev: dc1859a1dda854b1302d046713a3bd15e99c3f5b) Signed-off-by: Yuqing Zhu <carol.zhu@nxp.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad')
-rwxr-xr-xmeta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0006-glcolorconvert-GLES3-deprecates-texture2D-and-it-doe.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0006-glcolorconvert-GLES3-deprecates-texture2D-and-it-doe.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0006-glcolorconvert-GLES3-deprecates-texture2D-and-it-doe.patch
new file mode 100755
index 0000000000..79ef4c81ab
--- /dev/null
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0006-glcolorconvert-GLES3-deprecates-texture2D-and-it-doe.patch
@@ -0,0 +1,51 @@
1From 764fd69f8482eca9f925cefe72ebae090ae59d43 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com>
3Date: Tue, 19 Apr 2016 19:27:33 +0300
4Subject: [PATCH 3/3] glcolorconvert: GLES3 deprecates texture2D() and it does
5 not work at all in newer versions than 3.3
6
7Use the newer texture() function instead. This fixes glimagesink and other
8things on various Android devices.
9
10Upstream-Status: Backport [1.9.1]
11
12https://bugzilla.gnome.org/show_bug.cgi?id=765266
13---
14 gst-libs/gst/gl/gstglcolorconvert.c | 7 ++++---
15 1 file changed, 4 insertions(+), 3 deletions(-)
16
17diff --git a/gst-libs/gst/gl/gstglcolorconvert.c b/gst-libs/gst/gl/gstglcolorconvert.c
18index c23624f..f472d5d 100644
19--- a/gst-libs/gst/gl/gstglcolorconvert.c
20+++ b/gst-libs/gst/gl/gstglcolorconvert.c
21@@ -1716,7 +1716,7 @@ _unbind_buffer (GstGLColorConvert * convert)
22
23 static gchar *
24 _mangle_texture_access (const gchar * str, GstGLTextureTarget from,
25- GstGLTextureTarget to, GstGLAPI gl_api)
26+ GstGLTextureTarget to, GstGLAPI gl_api, guint gl_major, guint gl_minor)
27 {
28 const gchar *from_str = NULL, *to_str = NULL;
29 gchar *ret, *tmp;
30@@ -1730,7 +1730,8 @@ _mangle_texture_access (const gchar * str, GstGLTextureTarget from,
31 if (from == GST_GL_TEXTURE_TARGET_EXTERNAL_OES)
32 from_str = "texture2D";
33
34- if (gl_api & GST_GL_API_OPENGL3) {
35+ if ((gl_api & GST_GL_API_OPENGL3) || (gl_api & GST_GL_API_GLES2
36+ && gl_major >= 3)) {
37 to_str = "texture";
38 } else {
39 if (to == GST_GL_TEXTURE_TARGET_2D)
40@@ -1898,7 +1899,7 @@ _mangle_shader (const gchar * str, guint shader_type, GstGLTextureTarget from,
41
42 _mangle_version_profile_from_gl_api (gl_api, gl_major, gl_minor, version,
43 profile);
44- tmp = _mangle_texture_access (str, from, to, gl_api);
45+ tmp = _mangle_texture_access (str, from, to, gl_api, gl_major, gl_minor);
46 tmp2 = _mangle_sampler_type (tmp, from, to);
47 g_free (tmp);
48 tmp =
49--
501.9.1
51