Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 4BA86E00C0B; Wed, 27 Jan 2016 03:17:51 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from ptmx.org (ptmx.org [178.63.28.110]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id DE1A7E00863 for ; Wed, 27 Jan 2016 03:17:47 -0800 (PST) Received: from [10.1.14.248] (vpn.streamunlimited.com [91.114.0.140]) by ptmx.org (Postfix) with ESMTPSA id E15AF1FF36 for ; Wed, 27 Jan 2016 12:17:45 +0100 (CET) To: meta-freescale@yoctoproject.org References: <1453887720-16863-1-git-send-email-b54851@freescale.com> <1453887720-16863-2-git-send-email-b54851@freescale.com> From: Carlos Rafael Giani Message-ID: <56A8A758.9010302@pseudoterminal.org> Date: Wed, 27 Jan 2016 12:17:44 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <1453887720-16863-2-git-send-email-b54851@freescale.com> Subject: Re: [meta-fsl-arm][PATCH 1/9] gstreamer1.0-plugins-bad: Modify the videoparsers rank down to avoid link them in X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jan 2016 11:17:51 -0000 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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 > --- > .../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 > +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 > +--- > + 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}"