Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 44DB4E00D87; Wed, 20 Dec 2017 09:09:57 -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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [178.209.48.109 listed in list.dnswl.org] * -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] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail.kmu-office.ch (mail.kmu-office.ch [178.209.48.109]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id E0CB3E00D7F for ; Wed, 20 Dec 2017 09:09:55 -0800 (PST) Received: from linuxdev2.toradex.int (unknown [46.140.72.82]) by mail.kmu-office.ch (Postfix) with ESMTPSA id C826C5C3AEF; Wed, 20 Dec 2017 18:03:42 +0100 (CET) From: Stefan Agner To: meta-freescale@yoctoproject.org Date: Wed, 20 Dec 2017 18:09:50 +0100 Message-Id: <20171220170950.56811-6-stefan@agner.ch> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171220170950.56811-1-stefan@agner.ch> References: <20171220170950.56811-1-stefan@agner.ch> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1513789422; bh=etr9bf9qUhDd7hrGhhwdoBfDU5w1tvp824JTp1avSeM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=mKJGezuu1ZPTnnNOn7yuOafFO3/D1GMD32it/Exdg8T8jDstF1T7dwUlS+tNBjGmv0xFTAwxWfjFIfDVceIYQKbykcT9wyTc2nDpJyZdP+0Ade45W8PPlDRN0iWnAu49Y/Y5zqw4iyqwi2O2cXUDjObZ+5ihyrsDWjl3qYHRPl0= Cc: Stefan Agner Subject: [PATCH v3 6/6] gstreamer1.0-libav: Add NXP specific patches 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, 20 Dec 2017 17:09:57 -0000 From: Stefan Agner Add NXP specific patches from morty-4.9.51-mx8_beta branch. This allows to use imx-gst1.0-plugin 4.3.1 with gstreamer 1.12.2. Signed-off-by: Stefan Agner --- ...tavcodecmap-Do-not-require-a-channel-mask.patch | 46 ++++++++++++++++++++++ .../gstreamer/gstreamer1.0-libav_1.12.%.bbappend | 8 ++++ 2 files changed, 54 insertions(+) create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-libav/0002-gstavcodecmap-Do-not-require-a-channel-mask.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-libav_1.12.%.bbappend diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-libav/0002-gstavcodecmap-Do-not-require-a-channel-mask.patch b/recipes-multimedia/gstreamer/gstreamer1.0-libav/0002-gstavcodecmap-Do-not-require-a-channel-mask.patch new file mode 100644 index 00000000..b499d213 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-libav/0002-gstavcodecmap-Do-not-require-a-channel-mask.patch @@ -0,0 +1,46 @@ +From 1553cc0f1843213801767dedb973e30db2d23855 Mon Sep 17 00:00:00 2001 +From: Mathieu Duponchelle +Date: Thu, 17 Aug 2017 14:28:22 +0200 +Subject: [PATCH] gstavcodecmap: Do not require a channel-mask + +.. for mono or stereo input. + +Upstream-Status: Backport [1.13.1] + +https://bugzilla.gnome.org/show_bug.cgi?id=786401 +--- + ext/libav/gstavcodecmap.c | 17 ++++++++++++----- + 1 file changed, 12 insertions(+), 5 deletions(-) + +diff --git a/ext/libav/gstavcodecmap.c b/ext/libav/gstavcodecmap.c +index 35a2ca0..7033f54 100644 +--- a/ext/libav/gstavcodecmap.c ++++ b/ext/libav/gstavcodecmap.c +@@ -651,12 +651,19 @@ gst_ff_aud_caps_new (AVCodecContext * context, AVCodec * codec, + + if (gst_audio_channel_positions_to_mask (pos, nbits_set, FALSE, + &mask)) { +- GstCaps *tmp = +- gst_caps_new_simple (mimetype, "channel-mask", GST_TYPE_BITMASK, +- mask, +- "channels", G_TYPE_INT, nbits_set, NULL); ++ GstStructure *s = ++ gst_structure_new (mimetype, "channels", G_TYPE_INT, nbits_set, ++ NULL); ++ ++ /* No need to require a channel mask for mono or stereo */ ++ if (!(nbits_set == 1 && pos[0] == GST_AUDIO_CHANNEL_POSITION_MONO) ++ && !(nbits_set == 2 ++ && pos[0] == GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT ++ && pos[1] == GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT)) ++ gst_structure_set (s, "channel-mask", GST_TYPE_BITMASK, mask, ++ NULL); + +- gst_caps_append (caps, tmp); ++ gst_caps_append_structure (caps, s); + } + } + layouts++; +-- +1.9.1 + diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.12.%.bbappend b/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.12.%.bbappend new file mode 100644 index 00000000..b51d88be --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.12.%.bbappend @@ -0,0 +1,8 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI_IMX_PATCHES = " \ + file://0002-gstavcodecmap-Do-not-require-a-channel-mask.patch \ +" + +SRC_URI_append_mx6 = "${SRC_URI_IMX_PATCHES}" +SRC_URI_append_mx7 = "${SRC_URI_IMX_PATCHES}" -- 2.13.6