diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2018-01-25 18:20:11 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-26 13:09:10 +0000 |
commit | dd681a1b540bfb838a1b9bf40e7ee07d110328be (patch) | |
tree | 0baae1cc7ce04483280847bf5c72e20050a28660 | |
parent | 3ed96f29a29773afe8bbe5760e4562acef1b206a (diff) | |
download | poky-dd681a1b540bfb838a1b9bf40e7ee07d110328be.tar.gz |
gstreamer1.0: add a patch to further fix up the documentation generation
Gstreamer would attempt to launch gst-plugin-scanner binary installed on the host
if the target binary was failing (and it does, intentionally, fail in our case). Most
of the time the host binary is absent, and so this has no effect, but sometimes
it's present, and so the whole thing (running under qemu) fails.
(From OE-Core rev: 8485438140ce6a8d547137c81961125d4296cd6b)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-multimedia/gstreamer/files/0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch | 35 | ||||
-rw-r--r-- | meta/recipes-multimedia/gstreamer/gstreamer1.0.inc | 1 |
2 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/files/0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch b/meta/recipes-multimedia/gstreamer/files/0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch new file mode 100644 index 0000000000..67a872cddb --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/files/0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From a1d7c582392c8bc87fa9411af77b20e011944357 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Thu, 25 Jan 2018 17:55:02 +0200 | ||
4 | Subject: [PATCH] gst/gstpluginloader.c: when env var is set do not fall | ||
5 | through to system plugin scanner | ||
6 | |||
7 | If we set a custom GST_PLUGIN_SCANNER env var, then we probably want to use that and only that. | ||
8 | |||
9 | Falling through to the one installed on the system is problamatic in cross-compilation | ||
10 | environemnts, regardless of whether one pointed to by the env var succeeded or failed. | ||
11 | |||
12 | Upstream-Status: Pending | ||
13 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
14 | --- | ||
15 | gst/gstpluginloader.c | 4 +--- | ||
16 | 1 file changed, 1 insertion(+), 3 deletions(-) | ||
17 | |||
18 | diff --git a/gst/gstpluginloader.c b/gst/gstpluginloader.c | ||
19 | index 430829d..3a75731 100644 | ||
20 | --- a/gst/gstpluginloader.c | ||
21 | +++ b/gst/gstpluginloader.c | ||
22 | @@ -471,9 +471,7 @@ gst_plugin_loader_spawn (GstPluginLoader * loader) | ||
23 | helper_bin = g_strdup (env); | ||
24 | res = gst_plugin_loader_try_helper (loader, helper_bin); | ||
25 | g_free (helper_bin); | ||
26 | - } | ||
27 | - | ||
28 | - if (!res) { | ||
29 | + } else { | ||
30 | GST_LOG ("Trying installed plugin scanner"); | ||
31 | |||
32 | #ifdef G_OS_WIN32 | ||
33 | -- | ||
34 | 2.15.1 | ||
35 | |||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0.inc b/meta/recipes-multimedia/gstreamer/gstreamer1.0.inc index f523ef59f9..c2df1f3258 100644 --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0.inc +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0.inc | |||
@@ -17,6 +17,7 @@ acpaths = "-I ${S}/common/m4 -I ${S}/m4" | |||
17 | SRC_URI_append = " \ | 17 | SRC_URI_append = " \ |
18 | file://0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch \ | 18 | file://0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch \ |
19 | file://gtk-doc-tweaks.patch \ | 19 | file://gtk-doc-tweaks.patch \ |
20 | file://0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch \ | ||
20 | " | 21 | " |
21 | 22 | ||
22 | PACKAGECONFIG ??= "" | 23 | PACKAGECONFIG ??= "" |