[meta-freescale] [meta-fsl-arm][PATCH 1/9] gstreamer1.0-plugins-bad: Modify the videoparsers rank down to avoid link them in

Carlos Rafael Giani dv at pseudoterminal.org
Wed Jan 27 03:17:44 PST 2016


This is not acceptable. It breaks every autoplugged pipeline which 
relies on these elements. If your goal is to let GStreamer prefer the 
FSL parsers from gst1.0-fsl-plugins, then increase their ranks instead.

On 01/27/2016 10:41 AM, Yuqing Zhu wrote:
> . h263parse rank down to 63
> . h264parse rank down to 63
> . mpegvideoparse rank down to 63
> . mpeg4videpparse rank down to 63
> . pngparse, rank down to 63
> . h265parse rank down to 63
>
> Signed-off-by: Yuqing Zhu <b54851 at freescale.com>
> ---
>   .../0002-modifiy-the-videoparse-rank.patch         | 62 ++++++++++++++++++++++
>   .../gstreamer/gstreamer1.0-plugins-bad_%.bbappend  | 10 ++--
>   2 files changed, 69 insertions(+), 3 deletions(-)
>   create mode 100755 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-modifiy-the-videoparse-rank.patch
>
> diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-modifiy-the-videoparse-rank.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-modifiy-the-videoparse-rank.patch
> new file mode 100755
> index 0000000..d41d3d5
> --- /dev/null
> +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-modifiy-the-videoparse-rank.patch
> @@ -0,0 +1,62 @@
> +From 85b1ac94e34fcd3ebf2e4cedb48313c1189dc61d Mon Sep 17 00:00:00 2001
> +From: Lyon Wang <lyon.wang at freescale.com>
> +Date: Fri, 29 May 2015 09:54:56 +0800
> +Subject: [PATCH 05/10] modifiy the videoparse rank
> +
> +- Modify the videparsers rank down to avoid link them in
> +. h263parse rank down to 63
> +. h264parse rank down to 63
> +. mpegvideoparse rank down to 63
> +. mpeg4videpparse rank down to 63
> +. pngparse, rank down to 63
> +. h265parse rank down to 63
> +
> +Upstream-Status:  [i.MX specific] internal use only
> +
> +Signed-off-by: Lyon Wang <lyon.wang at freescale.com>
> +---
> + gst/videoparsers/plugin.c | 21 +++++++++++++++++++--
> + 1 file changed, 19 insertions(+), 2 deletions(-)
> +
> +diff --git a/gst/videoparsers/plugin.c b/gst/videoparsers/plugin.c
> +index 79d1df6..c070b93 100644
> +--- a/gst/videoparsers/plugin.c
> ++++ b/gst/videoparsers/plugin.c
> +@@ -35,7 +35,7 @@ static gboolean
> + plugin_init (GstPlugin * plugin)
> + {
> +   gboolean ret = FALSE;
> +-
> ++#if 0
> +   ret |= gst_element_register (plugin, "h263parse",
> +       GST_RANK_PRIMARY + 1, GST_TYPE_H263_PARSE);
> +   ret |= gst_element_register (plugin, "h264parse",
> +@@ -52,7 +52,24 @@ plugin_init (GstPlugin * plugin)
> +       GST_RANK_SECONDARY, GST_TYPE_H265_PARSE);
> +   ret |= gst_element_register (plugin, "vc1parse",
> +       GST_RANK_NONE, GST_TYPE_VC1_PARSE);
> +-
> ++#else
> ++  ret |= gst_element_register (plugin, "h263parse",
> ++      GST_RANK_MARGINAL - 1, GST_TYPE_H263_PARSE);
> ++  ret |= gst_element_register (plugin, "h264parse",
> ++      GST_RANK_MARGINAL - 1, GST_TYPE_H264_PARSE);
> ++  ret |= gst_element_register (plugin, "diracparse",
> ++      GST_RANK_NONE, GST_TYPE_DIRAC_PARSE);
> ++  ret |= gst_element_register (plugin, "mpegvideoparse",
> ++      GST_RANK_MARGINAL - 1, GST_TYPE_MPEGVIDEO_PARSE);
> ++  ret |= gst_element_register (plugin, "mpeg4videoparse",
> ++      GST_RANK_MARGINAL -1, GST_TYPE_MPEG4VIDEO_PARSE);
> ++  ret |= gst_element_register (plugin, "pngparse",
> ++      GST_RANK_MARGINAL-1, GST_TYPE_PNG_PARSE);
> ++  ret |= gst_element_register (plugin, "h265parse",
> ++      GST_RANK_MARGINAL-1, GST_TYPE_H265_PARSE);
> ++  ret |= gst_element_register (plugin, "vc1parse",
> ++      GST_RANK_NONE, GST_TYPE_VC1_PARSE);
> ++#endif
> +   return ret;
> + }
> +
> +--
> +1.9.1
> +
> diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend
> index 7e6f3ff..3df7ffa 100644
> --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend
> +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend
> @@ -10,9 +10,13 @@ PACKAGECONFIG_GL_mx6sl = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', \
>                              base_contains('DISTRO_FEATURES', 'x11', \
>                                       'opengl', '', d), '', d)}"
>   
> -SRC_URI_append_mx6 = " file://0001-PATCH-install-gstaggregator-and-gstvideoaggregator-h.patch"
> -SRC_URI_append_mx6ul = " file://0001-PATCH-install-gstaggregator-and-gstvideoaggregator-h.patch"
> -SRC_URI_append_mx7 = " file://0001-PATCH-install-gstaggregator-and-gstvideoaggregator-h.patch"
> +IMX_PATCHES = " file://0001-PATCH-install-gstaggregator-and-gstvideoaggregator-h.patch \
> +                file://0002-modifiy-the-videoparse-rank.patch \
> +"
> +
> +SRC_URI_append_mx6 = "${IMX_PATCHES}"
> +SRC_URI_append_mx6ul = "${IMX_PATCHES}"
> +SRC_URI_append_mx7 = "${IMX_PATCHES}"
>   
>   
>   PACKAGE_ARCH_mx6 = "${MACHINE_SOCARCH}"



More information about the meta-freescale mailing list