imx-gst1.0-plugin: Upgrade to v4.3.1
PATCH v2 1/6 imx-gst1.0-plugin: Upgrade to v4.3.1
From: Stefan Agner <[email protected]>
Upgrade to v4.3.1 from L4.9.51_MX8_BETA1 release. This version works well with GStreamer 1.12 used with rocko, also on older SoCs such as i.MX 6.
---
...-plugin_4.1.6.bb => imx-gst1.0-plugin_4.3.1.bb} | 34 ++++++++++++----------
1 file changed, 18 insertions(+), 16 deletions(-)
rename recipes-multimedia/gstreamer/{imx-gst1.0-plugin_4.1.6.bb => imx-gst1.0-plugin_4.3.1.bb} (80%)recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.3.1.bb renamed from recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.1.6.bb +18 -16
@@ -1,4 +1,5 @@ # Copyright (C) 2014,2016 Freescale Semiconductor +# Copyright 2017 NXP # Copyright (C) 2012-2015 O.S. Systems Software LTDA. # Released under the MIT license (see COPYING.MIT for the terms)
@@ -7,27 +8,23 @@ LICENSE = "GPLv2 & LGPLv2 & LGPLv2.1" SECTION = "multimedia" DEPENDS = "imx-codec imx-parser virtual/kernel gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad" -DEPENDS_append_mx6q = " imx-lib imx-vpu imx-vpuwrap" -DEPENDS_append_mx6dl = " imx-lib imx-vpu imx-vpuwrap" -DEPENDS_append_mx6sl = " imx-lib" -DEPENDS_append_mx6sx = " imx-lib" -DEPENDS_append_mx6ul = " imx-lib" -DEPENDS_append_mx7d = " imx-lib" +DEPENDS_append_mx6 = " imx-lib" +DEPENDS_append_mx7 = " imx-lib" +DEPENDS_append_imxvpu = " imx-vpuwrap" # For backwards compatibility RREPLACES_${PN} = "gst1.0-fsl-plugin" RPROVIDES_${PN} = "gst1.0-fsl-plugin" RCONFLICTS_${PN} = "gst1.0-fsl-plugin" -LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ - file://COPYING-LGPL-2;md5=5f30f0716dfdd0d91eb439ebec522ec2 \ +LIC_FILES_CHKSUM = "file://COPYING-LGPL-2;md5=5f30f0716dfdd0d91eb439ebec522ec2 \ file://COPYING-LGPL-2.1;md5=fbc093901857fcd118f065f900982c24" -SRCBRANCH = "nxp/MM_04.02.01_1705_L4.9.11_CONSOLIDATED_GA" +IMXGST_SRC ?= "git://source.codeaurora.org/external/imx/imx-gst1.0-plugin.git;protocol=https" +SRCBRANCH = "MM_04.03.01_1710_L4.9.51_MX8_BETA1" -SRC_URI = " \ - git://source.codeaurora.org/external/imx/gst1.0-plugins-fsl.git;protocol=https;branch=${SRCBRANCH} \ -" +SRC_URI = "${IMXGST_SRC};branch=${SRCBRANCH}" +SRCREV = "cfa6157b4c7d07890ba41131809333bfa1f757de" S = "${WORKDIR}/git"
@@ -35,12 +32,15 @@ inherit autotools pkgconfig # Make sure kernel sources are available do_configure[depends] += "virtual/kernel:do_shared_workdir" + PLATFORM_mx6 = "MX6" PLATFORM_mx6sl = "MX6SL" PLATFORM_mx6sx = "MX6SX" PLATFORM_mx6ul = "MX6UL" -PLATFORM_mx6ull = "MX6UL" -PLATFORM_mx7d = "MX7D" +PLATFORM_mx6sll = "MX6SLL" +PLATFORM_mx7= "MX7D" +PLATFORM_mx7ulp= "MX7ULP" +PLATFORM_mx8 = "MX8" # Todo add a mechanism to map possible build targets EXTRA_OECONF = "PLATFORM=${PLATFORM} \
@@ -54,8 +54,10 @@ PACKAGES =+ "${PN}-gplay ${PN}-libgplaycore ${PN}-libgstfsl ${PN}-grecorder ${PN BEEP_RDEPENDS = "imx-codec-aac imx-codec-mp3 imx-codec-oggvorbis" RDEPENDS_${PN} += "imx-parser ${BEEP_RDEPENDS} gstreamer1.0-plugins-good-id3demux " +# overlaysink rely on G2D, +# cannot be supported on i.MX6SLL & i.MX6UL & i.MX6ULL & i.MX7D PACKAGECONFIG ?= "" -PACKAGECONFIG_mx6 = "overlaysink" +PACKAGECONFIG_imxgpu2d = "overlaysink" # FIXME: Add all features
@@ -81,4 +83,4 @@ FILES_${PN}-grecorder = "${bindir}/grecorder-1.0" FILES_${PN}-librecorder-engine = "${libdir}/librecorder_engine-1.0${SOLIBS}" FILES_${PN}-libplayengine = "${libdir}/libplayengine-1.0${SOLIBS}" -COMPATIBLE_MACHINE = "(mx6|mx6ul|mx6ull|mx7d)" +COMPATIBLE_MACHINE = "(mx6|mx7|mx8)"
Signature · 1 line
2.13.6
PATCH v2 4/6 gstreamer1.0-plugins-good: Add NXP specific patches
From: Stefan Agner <[email protected]>
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.
--- ...Need-to-check-if-pa-stream-is-still-valid.patch | 39 +++ .../0002-Fix-aacpase-error-tolerance-issue.patch | 34 +++ ...-MMFMWK-7274-mx8dv-Enable-camera-on-mx8dv.patch | 37 +++ ...-Fix-adif-aac-file-read-channel-progile-i.patch | 267 +++++++++++++++++++++ .../gstreamer1.0-plugins-good_1.12.%.bbappend | 11 + 5 files changed, 388 insertions(+) create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-Need-to-check-if-pa-stream-is-still-valid.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0002-Fix-aacpase-error-tolerance-issue.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0003-MMFMWK-7274-mx8dv-Enable-camera-on-mx8dv.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0004-gstaacparse-Fix-adif-aac-file-read-channel-progile-i.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.12.%.bbappend
recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-Need-to-check-if-pa-stream-is-still-valid.patch new file +39 -0
@@ -0,0 +1,39 @@ +From a4af947cb793cd3b9550c76d1ea8db7d3a94612a Mon Sep 17 00:00:00 2001 +From: Jian <[email protected]> +Date: Tue, 3 Feb 2015 17:08:40 +0800 +Subject: [PATCH 2/4] Need to check if pa stream is still valid + +Fixed the issue that will report pulse server is dead +when doing audio track switching. +Need to check if pa stream is valid as it may be released +by caps change. + +Upstream-Status: Submitted +https://bugzilla.gnome.org/show_bug.cgi?id=743912 + +Signed-off-by: Jian <[email protected]> +--- + ext/pulse/pulsesink.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c +index 521c4a6..931f1c8 100644 +--- a/ext/pulse/pulsesink.c ++++ b/ext/pulse/pulsesink.c +@@ -2022,6 +2022,13 @@ gst_pulsesink_get_time (GstClock * clock, GstAudioBaseSink * sink) + } + + pa_threaded_mainloop_lock (mainloop); ++ ++ /* Need to check if pa stream is valid as it may be released by caps change*/ ++ if (!pbuf->stream) { ++ pa_threaded_mainloop_unlock (mainloop); ++ return GST_CLOCK_TIME_NONE; ++ } ++ + if (gst_pulsering_is_dead (psink, pbuf, TRUE)) + goto server_dead; + +-- +1.9.1 +
recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0002-Fix-aacpase-error-tolerance-issue.patch new file +34 -0
@@ -0,0 +1,34 @@ +From db527a6db0c55322174ff6baa389ac8b110ec662 Mon Sep 17 00:00:00 2001 +From: Lyon Wang <[email protected]> +Date: Fri, 6 Feb 2015 11:27:47 +0800 +Subject: [PATCH 3/4] Fix aacpase error tolerance issue + +There is no need to check channel configure in adts header. +The channel could be output of decoder. +No need to return fatal error here. + +https://bugzilla.gnome.org/show_bug.cgi?id=743332 + +Upstream-Status: Pending + +Signed-off-by: Lyon Wang <[email protected]> +--- + gst/audioparsers/gstaacparse.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gst/audioparsers/gstaacparse.c b/gst/audioparsers/gstaacparse.c +index cabd961..09a53cc 100644 +--- a/gst/audioparsers/gstaacparse.c ++++ b/gst/audioparsers/gstaacparse.c +@@ -915,7 +915,7 @@ gst_aac_parse_detect_stream (GstAacParse * aacparse, + gst_aac_parse_parse_adts_header (aacparse, data, &rate, &channels, + &aacparse->object_type, &aacparse->mpegversion); + +- if (!channels || !framesize) { ++ if (!framesize) { + GST_DEBUG_OBJECT (aacparse, "impossible ADTS configuration"); + return FALSE; + } +-- +1.9.1 +
recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0003-MMFMWK-7274-mx8dv-Enable-camera-on-mx8dv.patch new file +37 -0
@@ -0,0 +1,37 @@ +From 4a37ac1ffc2952fb6dedec914dcd336dbaf5dff5 Mon Sep 17 00:00:00 2001 +From: Song Bing <[email protected]> +Date: Fri, 21 Oct 2016 11:24:05 +0800 +Subject: [PATCH 4/4] MMFMWK-7274 [mx8dv] Enable camera on mx8dv + +Set memory allocate by camera as physical continuoues. + +Signed-off-by: Song Bing [email protected] +--- + sys/v4l2/gstv4l2allocator.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/sys/v4l2/gstv4l2allocator.c b/sys/v4l2/gstv4l2allocator.c +index 2047383..ecab01e 100644 +--- a/sys/v4l2/gstv4l2allocator.c ++++ b/sys/v4l2/gstv4l2allocator.c +@@ -818,7 +818,7 @@ gst_v4l2_allocator_alloc_mmap (GstV4l2Allocator * allocator) + "mmap buffer length %d, data offset %d, plane %d", + group->planes[i].length, group->planes[i].data_offset, i); + +- group->mem[i] = (GstMemory *) _v4l2mem_new (0, GST_ALLOCATOR (allocator), ++ group->mem[i] = (GstMemory *) _v4l2mem_new (GST_MEMORY_FLAG_PHYSICALLY_CONTIGUOUS, GST_ALLOCATOR (allocator), + NULL, group->planes[i].length, 0, 0, group->planes[i].length, i, + data, -1, group); + } else { +@@ -879,7 +879,7 @@ gst_v4l2_allocator_alloc_dmabuf (GstV4l2Allocator * allocator, + GST_LOG_OBJECT (allocator, "exported DMABUF as fd %i plane %d", + expbuf.fd, i); + +- group->mem[i] = (GstMemory *) _v4l2mem_new (0, GST_ALLOCATOR (allocator), ++ group->mem[i] = (GstMemory *) _v4l2mem_new (GST_MEMORY_FLAG_PHYSICALLY_CONTIGUOUS, GST_ALLOCATOR (allocator), + NULL, group->planes[i].length, 0, 0, group->planes[i].length, i, + NULL, expbuf.fd, group); + } else { +-- +1.9.1 +
recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0004-gstaacparse-Fix-adif-aac-file-read-channel-progile-i.patch new file +267 -0
267 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.12.%.bbappend new file +11 -0
@@ -0,0 +1,11 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI_IMX_PATCHES = " \ + file://0001-Need-to-check-if-pa-stream-is-still-valid.patch \ + file://0002-Fix-aacpase-error-tolerance-issue.patch \ + file://0003-MMFMWK-7274-mx8dv-Enable-camera-on-mx8dv.patch \ + file://0004-gstaacparse-Fix-adif-aac-file-read-channel-progile-i.patch \ +" + +SRC_URI_append_mx6 = "${SRC_URI_IMX_PATCHES}" +SRC_URI_append_mx7 = "${SRC_URI_IMX_PATCHES}"
Signature · 1 line
2.13.6
PATCH v2 6/6 gstreamer1.0-libav: Add NXP specific patches
In reply to Stefan AgnerFrom: Stefan Agner <[email protected]>
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.
--- ...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
recipes-multimedia/gstreamer/gstreamer1.0-libav/0002-gstavcodecmap-Do-not-require-a-channel-mask.patch new file +46 -0
@@ -0,0 +1,46 @@ +From 1553cc0f1843213801767dedb973e30db2d23855 Mon Sep 17 00:00:00 2001 +From: Mathieu Duponchelle <[email protected]> +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 +
recipes-multimedia/gstreamer/gstreamer1.0-libav_1.12.%.bbappend new file +8 -0
@@ -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}"
Signature · 1 line
2.13.6
PATCH v2 2/6 gstreamer1.0: Add NXP specific patches
In reply to Stefan AgnerFrom: Stefan Agner <[email protected]>
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.
--- .../0001-handle-base-parse-error.patch | 35 ++++++++ ...ith-gst-inspect-Chris-Lord-chris-openedha.patch | 32 ++++++++ ...e-unset-FLAG_DISCONT-when-push-to-adapter.patch | 33 ++++++++ ...e-Need-push-adapter-remainning-data-in-pa.patch | 51 ++++++++++++ ...or-should-proceed-non-active-pad-buffer-e.patch | 51 ++++++++++++ ...0006-poll-Add-check-if-can-read-event-API.patch | 95 ++++++++++++++++++++++ ...or-Need-flush-when-set-active-pad-and-the.patch | 68 ++++++++++++++++ .../gstreamer/gstreamer1.0_1.12.%.bbappend | 16 ++++ 8 files changed, 381 insertions(+) create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0/0001-handle-base-parse-error.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0/0002-Fix-crash-with-gst-inspect-Chris-Lord-chris-openedha.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0/0003-baseparse-unset-FLAG_DISCONT-when-push-to-adapter.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0/0004-gstbaseparse-Need-push-adapter-remainning-data-in-pa.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0/0005-inputselector-should-proceed-non-active-pad-buffer-e.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0/0006-poll-Add-check-if-can-read-event-API.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0/0007-inputselector-Need-flush-when-set-active-pad-and-the.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0_1.12.%.bbappend
recipes-multimedia/gstreamer/gstreamer1.0/0001-handle-base-parse-error.patch new file +35 -0
@@ -0,0 +1,35 @@ +From 01b047cbb5e326fb3980bb6fc5206a82ea401170 Mon Sep 17 00:00:00 2001 +From: Lyon Wang <[email protected]> +Date: Wed, 14 Oct 2015 14:15:11 +0800 +Subject: [PATCH 1/7] handle base parse error + +There is no need to send GST_ELEMENT_ERROR +becuase ohter tracks may still good to play. +no need to end the element, just print error message is enough + +Upstream-Status: Submitted [https://bugzilla.gnome.org/show_bug.cgi?id=741542] + +Signed-off-by: Lyon Wang <[email protected]> +--- + libs/gst/base/gstbaseparse.c | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c +index df67dd0..2f45d23 100644 +--- a/libs/gst/base/gstbaseparse.c ++++ b/libs/gst/base/gstbaseparse.c +@@ -1324,8 +1324,9 @@ gst_base_parse_sink_event_default (GstBaseParse * parse, GstEvent * event) + /* If we STILL have zero frames processed, fire an error */ + if (parse->priv->framecount == 0 && !parse->priv->saw_gaps && + !parse->priv->first_buffer) { +- GST_ELEMENT_ERROR (parse, STREAM, WRONG_TYPE, +- ("No valid frames found before end of stream"), (NULL)); ++ /* GST_ELEMENT_ERROR (parse, STREAM, WRONG_TYPE, ++ ("No valid frames found before end of stream"), (NULL));*/ ++ GST_ERROR_OBJECT(parse, "No valid frames decoded before end of stream"); + } + + if (!parse->priv->saw_gaps +-- +1.9.1 +
recipes-multimedia/gstreamer/gstreamer1.0/0002-Fix-crash-with-gst-inspect-Chris-Lord-chris-openedha.patch new file +32 -0
@@ -0,0 +1,32 @@ +From 1bd9b30040ad23d86faa577baeb1c6734f39150f Mon Sep 17 00:00:00 2001 +From: Carlos Rafael Giani <[email protected]> +Date: Sat, 6 Apr 2013 23:52:11 +0200 +Subject: [PATCH 2/7] Fix crash with gst-inspect Chris Lord + <[email protected]> + +Upstream-Status: Pending + +Signed-off-by: Carlos Rafael Giani <[email protected]> + +Conflicts: + tools/gst-inspect.c +--- + tools/gst-inspect.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c +index e420e4c..95983bc 100644 +--- a/tools/gst-inspect.c ++++ b/tools/gst-inspect.c +@@ -1548,7 +1548,7 @@ main (int argc, char *argv[]) + g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE); + g_option_context_add_group (ctx, gst_init_get_option_group ()); + if (!g_option_context_parse (ctx, &argc, &argv, &err)) { +- g_printerr ("Error initializing: %s\n", err->message); ++ g_printerr ("Error initializing: %s\n", err ? err->message : "(null)"); + g_clear_error (&err); + g_option_context_free (ctx); + return -1; +-- +1.9.1 +
recipes-multimedia/gstreamer/gstreamer1.0/0003-baseparse-unset-FLAG_DISCONT-when-push-to-adapter.patch new file +33 -0
@@ -0,0 +1,33 @@ +From 95d80584413c60cfe302cb2b55f59ffdca2a67b9 Mon Sep 17 00:00:00 2001 +From: Lyon Wang <[email protected]> +Date: Wed, 4 Nov 2015 18:16:52 +0800 +Subject: [PATCH 3/7] [baseparse] unset FLAG_DISCONT when push to adapter + +Since DISCONT flag will be handled by priv->discont flag. +There is no need to copy DISCONT flag to adapter. +Otherwise, the DISCONT flag will alwasys been set on each frame, +for the first chain in buffer. + + +Upstream-Status: Pending [https://bugzilla.gnome.org/show_bug.cgi?id=757575] + +Signed-off-by: Lyon Wang <[email protected]> +--- + libs/gst/base/gstbaseparse.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c +index 2f45d23..3c52887 100644 +--- a/libs/gst/base/gstbaseparse.c ++++ b/libs/gst/base/gstbaseparse.c +@@ -3157,6 +3157,7 @@ gst_base_parse_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer) + parse->priv->discont = TRUE; + } + } ++ GST_BUFFER_FLAG_UNSET(buffer, GST_BUFFER_FLAG_DISCONT); + gst_adapter_push (parse->priv->adapter, buffer); + } + +-- +1.9.1 +
recipes-multimedia/gstreamer/gstreamer1.0/0004-gstbaseparse-Need-push-adapter-remainning-data-in-pa.patch new file +51 -0
51 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0/0005-inputselector-should-proceed-non-active-pad-buffer-e.patch new file +51 -0
51 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0/0006-poll-Add-check-if-can-read-event-API.patch new file +95 -0
95 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0/0007-inputselector-Need-flush-when-set-active-pad-and-the.patch new file +68 -0
68 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0_1.12.%.bbappend new file +16 -0
@@ -0,0 +1,16 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +DEPENDS += " elfutils" + +SRC_URI_IMX_PATCHES = " \ + file://0001-handle-base-parse-error.patch \ + file://0002-Fix-crash-with-gst-inspect-Chris-Lord-chris-openedha.patch \ + file://0003-baseparse-unset-FLAG_DISCONT-when-push-to-adapter.patch \ + file://0004-gstbaseparse-Need-push-adapter-remainning-data-in-pa.patch \ + file://0005-inputselector-should-proceed-non-active-pad-buffer-e.patch \ + file://0006-poll-Add-check-if-can-read-event-API.patch \ + file://0007-inputselector-Need-flush-when-set-active-pad-and-the.patch \ +" + +SRC_URI_append_mx6 = "${SRC_URI_IMX_PATCHES}" +SRC_URI_append_mx7 = "${SRC_URI_IMX_PATCHES}"
Signature · 1 line
2.13.6
PATCH v2 3/6 gstreamer1.0-plugins-base: Add NXP specific patches
In reply to Stefan AgnerFrom: Stefan Agner <[email protected]>
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.
--- ...rlay-make-memory-copy-when-video-buffer-s.patch | 78 ++++ ...-don-t-set-async-of-custom-text-sink-to-f.patch | 35 ++ ...stplaybin-remove-default-deinterlace-flag.patch | 31 ++ ...-send-to-down-stream-if-all-the-frame-cor.patch | 58 +++ .../0007-handle-audio-video-decoder-error.patch | 66 ++++ ...esink-print-warning-istead-of-return-ERRO.patch | 47 +++ ...-Linux_MX6QP_ARD-IMXCameraApp-When-Enable.patch | 58 +++ ...-7259-Remove-dependence-on-imx-plugin-git.patch | 433 +++++++++++++++++++++ ...-optimization-for-lib-video-in-plugins-ba.patch | 34 ++ ...-Remove-phymem-allocator-from-base-to-bad.patch | 37 ++ .../0013-dmabuf-set-fd-memory-to-keep-mapped.patch | 30 ++ ...ed-unmap-if-mapping-flags-are-not-subset-.patch | 36 ++ ...-basetextoverlay-need-avoid-idx-exceed-me.patch | 34 ++ .../gstreamer1.0-plugins-base_1.12.%.bbappend | 28 ++ 14 files changed, 1005 insertions(+) create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-basetextoverlay-make-memory-copy-when-video-buffer-s.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0002-gstplaysink-don-t-set-async-of-custom-text-sink-to-f.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0005-gstplaybin-remove-default-deinterlace-flag.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0006-taglist-not-send-to-down-stream-if-all-the-frame-cor.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0007-handle-audio-video-decoder-error.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0008-gstaudiobasesink-print-warning-istead-of-return-ERRO.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0009-MMFMWK-7030-Linux_MX6QP_ARD-IMXCameraApp-When-Enable.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0010-MMFMWK-7259-Remove-dependence-on-imx-plugin-git.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0011-Disable-orc-optimization-for-lib-video-in-plugins-ba.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0012-Remove-phymem-allocator-from-base-to-bad.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0013-dmabuf-set-fd-memory-to-keep-mapped.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0014-fdmemory-need-unmap-if-mapping-flags-are-not-subset-.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0015-basetextoverlay-need-avoid-idx-exceed-me.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.12.%.bbappend
recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-basetextoverlay-make-memory-copy-when-video-buffer-s.patch new file +78 -0
@@ -0,0 +1,78 @@ +From f54f1c28272913a216e91868ce0270e6c0d99b2e Mon Sep 17 00:00:00 2001 +From: Mingke Wang <[email protected]> +Date: Fri, 16 Oct 2015 19:31:32 +0800 +Subject: [PATCH 01/16] basetextoverlay: make memory copy when video buffer's + memory is ready only + +1. since gst_buffer_make_writable just lookup the refcount to determine if + a buffer is writable, and it will use _gst_buffer_copy() which don't + perform a deep memory copy even if the flag of a memory is set to + GST_MEMORY_FLAG_READONLY. So, we detect the memory flag and use + gst_buffer_copy_region with GST_BUFFER_COPY_DEEP parameter to perform + deep memory copy. if the allocator of a memory don't support mem_copy + interface, the it will return NULL, if this case, we can use + gst_buffer_make_writable() to get a shared memory buffer or the orignal + buffer if the buffer's refcount is 1. + +Signed-off-by: Mingke Wang <[email protected]> +--- + ext/pango/gstbasetextoverlay.c | 32 ++++++++++++++++++++++++++++++-- + 1 file changed, 30 insertions(+), 2 deletions(-) + mode change 100644 => 100755 ext/pango/gstbasetextoverlay.c + +diff --git a/ext/pango/gstbasetextoverlay.c b/ext/pango/gstbasetextoverlay.c +old mode 100644 +new mode 100755 +index 44f5f52..c08e3b0 +--- a/ext/pango/gstbasetextoverlay.c ++++ b/ext/pango/gstbasetextoverlay.c +@@ -2227,16 +2227,44 @@ gst_base_text_overlay_push_frame (GstBaseTextOverlay * overlay, + } + } + +- video_frame = gst_buffer_make_writable (video_frame); +- + if (overlay->attach_compo_to_buffer) { + GST_DEBUG_OBJECT (overlay, "Attaching text overlay image to video buffer"); ++ video_frame = gst_buffer_make_writable (video_frame); + gst_buffer_add_video_overlay_composition_meta (video_frame, + overlay->composition); + /* FIXME: emulate shaded background box if want_shading=true */ + goto done; + } + ++ gint idx = 0; ++ gboolean mem_rdonly = FALSE; ++ GstMemory *mem; ++ ++ while (mem = gst_buffer_get_memory(video_frame, idx++)) { ++ if (GST_MEMORY_IS_READONLY(mem)) { ++ gst_memory_unref (mem); ++ mem_rdonly = TRUE; ++ break; ++ } ++ gst_memory_unref (mem); ++ } ++ ++ if (mem_rdonly) { ++ GstBuffer *new_buf = gst_buffer_copy_region (video_frame, ++ GST_BUFFER_COPY_ALL | GST_BUFFER_COPY_DEEP, 0, -1); ++ ++ if (!new_buf) { ++ GST_WARNING_OBJECT(overlay, ++ "buffer memory read only, but copy memory failed"); ++ goto done; ++ } else { ++ gst_buffer_unref (video_frame); ++ video_frame = new_buf; ++ } ++ } else { ++ video_frame = gst_buffer_make_writable (video_frame); ++ } ++ + if (!gst_video_frame_map (&frame, &overlay->info, video_frame, + GST_MAP_READWRITE)) + goto invalid_frame; +-- +1.9.1 +
recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0002-gstplaysink-don-t-set-async-of-custom-text-sink-to-f.patch new file +35 -0
@@ -0,0 +1,35 @@ +From 9444e647142d69b5381bb1225700e335312b1144 Mon Sep 17 00:00:00 2001 +From: Mingke Wang <[email protected]> +Date: Thu, 19 Mar 2015 14:15:25 +0800 +Subject: [PATCH 02/16] gstplaysink: don't set async of custom text-sink to + false + +set async to false lead to A/V sync problem when seeking. +the preroll need use GAP event instead of set async to false. + +Upstream-Status: Inappropriate [i.MX specific] + +Signed-off-by: Mingke Wang <[email protected]> +--- + gst/playback/gstplaysink.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + mode change 100644 => 100755 gst/playback/gstplaysink.c + +diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c +old mode 100644 +new mode 100755 +index ead2e68..3f62769 +--- a/gst/playback/gstplaysink.c ++++ b/gst/playback/gstplaysink.c +@@ -2456,7 +2456,7 @@ gen_text_chain (GstPlaySink * playsink) + G_TYPE_BOOLEAN); + if (elem) { + /* make sure the sparse subtitles don't participate in the preroll */ +- g_object_set (elem, "async", FALSE, NULL); ++ //g_object_set (elem, "async", FALSE, NULL); + GST_DEBUG_OBJECT (playsink, "adding custom text sink"); + gst_bin_add (bin, chain->sink); + /* NOTE streamsynchronizer needs streams decoupled */ +-- +1.9.1 +
recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0005-gstplaybin-remove-default-deinterlace-flag.patch new file +31 -0
@@ -0,0 +1,31 @@ +From 14dc47b7e6e118d06ad4e7ed29284984b3fae248 Mon Sep 17 00:00:00 2001 +From: Jian Li <[email protected]> +Date: Mon, 23 Jun 2014 14:14:07 +0800 +Subject: [PATCH 06/16] gstplaybin remove default deinterlace flag + +- remove default deinterlace flag in playbin for i.MX SoCs + +Upstream-Status: Inappropriate [i.MX specific] + +Signed-off-by: Jian Li <[email protected]> +--- + gst/playback/gstplaybin2.c | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c +index 04eeb2b..09b7ad2 100644 +--- a/gst/playback/gstplaybin2.c ++++ b/gst/playback/gstplaybin2.c +@@ -500,8 +500,7 @@ struct _GstPlayBinClass + #define DEFAULT_SUBURI NULL + #define DEFAULT_SOURCE NULL + #define DEFAULT_FLAGS GST_PLAY_FLAG_AUDIO | GST_PLAY_FLAG_VIDEO | GST_PLAY_FLAG_TEXT | \ +- GST_PLAY_FLAG_SOFT_VOLUME | GST_PLAY_FLAG_DEINTERLACE | \ +- GST_PLAY_FLAG_SOFT_COLORBALANCE ++ GST_PLAY_FLAG_SOFT_VOLUME + #define DEFAULT_N_VIDEO 0 + #define DEFAULT_CURRENT_VIDEO -1 + #define DEFAULT_N_AUDIO 0 +-- +1.9.1 +
recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0006-taglist-not-send-to-down-stream-if-all-the-frame-cor.patch new file +58 -0
58 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0007-handle-audio-video-decoder-error.patch new file +66 -0
66 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0008-gstaudiobasesink-print-warning-istead-of-return-ERRO.patch new file +47 -0
47 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0009-MMFMWK-7030-Linux_MX6QP_ARD-IMXCameraApp-When-Enable.patch new file +58 -0
58 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0010-MMFMWK-7259-Remove-dependence-on-imx-plugin-git.patch new file +433 -0
433 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0011-Disable-orc-optimization-for-lib-video-in-plugins-ba.patch new file +34 -0
@@ -0,0 +1,34 @@ +From 0100444aa707053fb65bea26feffb5de90909b60 Mon Sep 17 00:00:00 2001 +From: Lyon Wang <[email protected]> +Date: Thu, 10 Dec 2015 14:32:43 +0800 +Subject: [PATCH 12/16] Disable orc optimization for lib video in plugins-base + +- the orc optimization for lib video in plugins base may +cause segmentation fault +- disalbe orc optimization for lib video and just use the c source + +package: gstreamer1.0-plugins-base + +Upstream-Status: Pending [https://bugzilla.gnome.org/show_bug.cgi?id=759286] + +Signed-off-by: Lyon Wang <[email protected]> +--- + gst-libs/gst/video/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gst-libs/gst/video/Makefile.am b/gst-libs/gst/video/Makefile.am +index 64f4978..a197a2f 100644 +--- a/gst-libs/gst/video/Makefile.am ++++ b/gst-libs/gst/video/Makefile.am +@@ -90,7 +90,7 @@ nodist_libgstvideo_@GST_API_VERSION@include_HEADERS = $(built_headers) + noinst_HEADERS = gstvideoutilsprivate.h + + libgstvideo_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) \ +- $(ORC_CFLAGS) ++ $(ORC_CFLAGS) -DDISABLE_ORC + libgstvideo_@GST_API_VERSION@_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS) $(ORC_LIBS) $(LIBM) + libgstvideo_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS) + +-- +1.9.1 +
recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0012-Remove-phymem-allocator-from-base-to-bad.patch new file +37 -0
@@ -0,0 +1,37 @@ +From 2ad9aa1c62ff7b7772862ace35dd03bfae3f0fce Mon Sep 17 00:00:00 2001 +From: Haihua Hu <[email protected]> +Date: Thu, 25 May 2017 11:31:46 +0800 +Subject: [PATCH 16/16] Remove phymem allocator from base to bad + +Upstream-Status: Inappropriate [i.MX specific] +--- + gst-libs/gst/allocators/Makefile.am | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git a/gst-libs/gst/allocators/Makefile.am b/gst-libs/gst/allocators/Makefile.am +index 1955436..1c5680b 100644 +--- a/gst-libs/gst/allocators/Makefile.am ++++ b/gst-libs/gst/allocators/Makefile.am +@@ -5,8 +5,7 @@ libgstallocators_@GST_API_VERSION@_includedir = $(includedir)/gstreamer-@GST_API + libgstallocators_@GST_API_VERSION@_include_HEADERS = \ + allocators.h \ + gstfdmemory.h \ +- gstdmabuf.h \ +- gstallocatorphymem.h ++ gstdmabuf.h + + if USE_ION + libgstallocators_@GST_API_VERSION@_include_HEADERS += \ +@@ -17,8 +16,7 @@ noinst_HEADERS = + + libgstallocators_@GST_API_VERSION@_la_SOURCES = \ + gstfdmemory.c \ +- gstdmabuf.c \ +- gstallocatorphymem.c ++ gstdmabuf.c + + if USE_ION + libgstallocators_@GST_API_VERSION@_la_SOURCES += \ +-- +1.9.1 +
recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0013-dmabuf-set-fd-memory-to-keep-mapped.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 59a4c4584f732eea055267971013909816287311 Mon Sep 17 00:00:00 2001 +From: Song Bing <[email protected]> +Date: Wed, 13 Sep 2017 13:37:17 -0800 +Subject: [PATCH 4/4] dmabuf: set fd memory to keep mapped + +set fd memory to keep mapped. + +Upstream-Status: Pending + +https://bugzilla.gnome.org/show_bug.cgi?id=768794 +--- + gst-libs/gst/allocators/gstdmabuf.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gst-libs/gst/allocators/gstdmabuf.c b/gst-libs/gst/allocators/gstdmabuf.c +index 7d6bcab..89bb447 100644 +--- a/gst-libs/gst/allocators/gstdmabuf.c ++++ b/gst-libs/gst/allocators/gstdmabuf.c +@@ -95,7 +95,7 @@ gst_dmabuf_allocator_alloc (GstAllocator * allocator, gint fd, gsize size) + { + g_return_val_if_fail (GST_IS_DMABUF_ALLOCATOR (allocator), NULL); + +- return gst_fd_allocator_alloc (allocator, fd, size, GST_FD_MEMORY_FLAG_NONE); ++ return gst_fd_allocator_alloc (allocator, fd, size, GST_FD_MEMORY_FLAG_KEEP_MAPPED); + } + + /** +-- +2.7.4 +
recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0014-fdmemory-need-unmap-if-mapping-flags-are-not-subset-.patch new file +36 -0
@@ -0,0 +1,36 @@ +From bbce23ade0d17c7ef4dbd6042009e0f2419f9668 Mon Sep 17 00:00:00 2001 +From: Haihua Hu <[email protected]> +Date: Mon, 6 Nov 2017 15:05:47 +0800 +Subject: [PATCH] fdmemory: need unmap if mapping flags are not subset of + previous + +Upstream-Status: Pending +https://bugzilla.gnome.org/show_bug.cgi?id=789952 + +--- + gst-libs/gst/allocators/gstfdmemory.c | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +diff --git a/gst-libs/gst/allocators/gstfdmemory.c b/gst-libs/gst/allocators/gstfdmemory.c +index ad428a7..1e6125a 100644 +--- a/gst-libs/gst/allocators/gstfdmemory.c ++++ b/gst-libs/gst/allocators/gstfdmemory.c +@@ -97,9 +97,13 @@ gst_fd_mem_map (GstMemory * gmem, gsize maxsize, GstMapFlags flags) + if ((mem->mmapping_flags & prot) == prot) { + ret = mem->data; + mem->mmap_count++; ++ goto out; ++ } else { ++ /* if mapping flags is not a subset, need unmap first */ ++ munmap ((void *) mem->data, gmem->maxsize); ++ mem->data = NULL; ++ mem->mmap_count = 0;; + } +- +- goto out; + } + + if (mem->fd != -1) { +-- +1.9.1 +
recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0015-basetextoverlay-need-avoid-idx-exceed-me.patch new file +34 -0
@@ -0,0 +1,34 @@ +From f11ab0f14638d21b6e48bff3fd63aaaa0689f21d Mon Sep 17 00:00:00 2001 +From: Haihua Hu <[email protected]> +Date: Thu, 30 Nov 2017 17:43:20 +0800 +Subject: [PATCH] [MMFMWK-7786] basetextoverlay: need avoid idx exceed memory + block number + +when check whether video buffer is read only, the gst_buffer_get_memory call +should make sure idx don't exceed the total memory block number + +Upstream-Status: Inappropriate [i.MX specific] + +Signed-off-by: Haihua Hu <[email protected]> +--- + ext/pango/gstbasetextoverlay.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/ext/pango/gstbasetextoverlay.c b/ext/pango/gstbasetextoverlay.c +index 7e32904..d2bbbee 100755 +--- a/ext/pango/gstbasetextoverlay.c ++++ b/ext/pango/gstbasetextoverlay.c +@@ -2248,7 +2248,9 @@ gst_base_text_overlay_push_frame (GstBaseTextOverlay * overlay, + gboolean mem_rdonly = FALSE; + GstMemory *mem; + +- while (mem = gst_buffer_get_memory(video_frame, idx++)) { ++ gint n_mem = gst_buffer_n_memory (video_frame); ++ ++ while (idx < n_mem && (mem = gst_buffer_get_memory(video_frame, idx++))) { + if (GST_MEMORY_IS_READONLY(mem)) { + gst_memory_unref (mem); + mem_rdonly = TRUE; +-- +1.9.1 +
recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.12.%.bbappend new file +28 -0
@@ -0,0 +1,28 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +# Enable pango lib +PACKAGECONFIG_append = " pango " + +# ion allocator will be enabled only when detecting the ion.h exists, which is built out from kernel. +# For now, ion allocatior is supported on mx7ulp & mx8 +DEPENDS_append_mx7ulp = " virtual/kernel" +DEPENDS_append_mx8 = " virtual/kernel" + +SRC_URI_IMX_PATCHES = " \ + file://0001-basetextoverlay-make-memory-copy-when-video-buffer-s.patch \ + file://0002-gstplaysink-don-t-set-async-of-custom-text-sink-to-f.patch \ + file://0005-gstplaybin-remove-default-deinterlace-flag.patch \ + file://0006-taglist-not-send-to-down-stream-if-all-the-frame-cor.patch \ + file://0007-handle-audio-video-decoder-error.patch \ + file://0008-gstaudiobasesink-print-warning-istead-of-return-ERRO.patch \ + file://0009-MMFMWK-7030-Linux_MX6QP_ARD-IMXCameraApp-When-Enable.patch \ + file://0010-MMFMWK-7259-Remove-dependence-on-imx-plugin-git.patch \ + file://0011-Disable-orc-optimization-for-lib-video-in-plugins-ba.patch \ + file://0012-Remove-phymem-allocator-from-base-to-bad.patch \ + file://0013-dmabuf-set-fd-memory-to-keep-mapped.patch \ + file://0014-fdmemory-need-unmap-if-mapping-flags-are-not-subset-.patch \ + file://0015-basetextoverlay-need-avoid-idx-exceed-me.patch \ +" + +SRC_URI_append_mx6 = "${SRC_URI_IMX_PATCHES}" +SRC_URI_append_mx7 = "${SRC_URI_IMX_PATCHES}"
Signature · 1 line
2.13.6
PATCH v2 5/6 gstreamer1.0-plugins-bad: Add NXP specific patches
In reply to Stefan AgnerFrom: Stefan Agner <[email protected]>
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.
--- ...pegtsmux-Need-get-pid-when-create-streams.patch | 44 ++ ...rse-Need-detect-picture-coding-type-when-.patch | 47 ++ .../0003-modifiy-the-videoparse-rank.patch | 77 +++ ...ter-Lost-frame-rate-info-when-fixate-caps.patch | 51 ++ ...dd-one-property-to-set-sink-element-for-v.patch | 181 ++++++ ...or-gl-plugin-not-built-in-wayland-backend.patch | 34 + ...07-Change-wayland-default-res-to-1024x768.patch | 41 ++ ...wayland-fix-loop-test-hang-in-glimagesink.patch | 142 +++++ ...sink-wayland-resize-showed-blurred-screen.patch | 32 + .../0010-support-video-crop-for-glimagesink.patch | 151 +++++ .../0011-Add-fps-print-in-glimagesink.patch | 86 +++ ...rconvert-convert-YUV-to-RGB-use-directviv.patch | 168 +++++ ...mpositor-Remove-output-format-alpha-check.patch | 35 ++ .../0014-Specific-patches-for-gstplayer-API.patch | 367 +++++++++++ ...15-gstplayer-Add-gst_player_get_state-API.patch | 63 ++ .../0016-gstplayer-Add-play-stop-sync-API.patch | 182 ++++++ .../0018-Add-imx-physical-memory-allocator.patch | 443 +++++++++++++ ...nt-of-interface-get_phys_addr-to-support-.patch | 48 ++ ...0020-Accelerate-gldownload-with-directviv.patch | 698 +++++++++++++++++++++ ...mabuf-memory-allocator-based-on-ion-drive.patch | 390 ++++++++++++ .../0022-ionmemory-support-get-phys-memory.patch | 94 +++ ...d-add-crop-meta-support-in-dmafd-uploader.patch | 52 ++ ...upload-add-ion-dmabuf-support-in-glupload.patch | 477 ++++++++++++++ ...0025-Add-ion-dmabuf-support-in-gldownload.patch | 473 ++++++++++++++ ...er-check-frame-buffer-status-need-use-spe.patch | 132 ++++ ...-add-EGL-platform-support-for-x11-backend.patch | 63 ++ ...-kmssink-use-control-node-to-setplane-to-.patch | 108 ++++ ...29-kmssink-support-videooverlay-interface.patch | 343 ++++++++++ ...030-kmssink-check-scaleable-when-set_caps.patch | 74 +++ ...-glimagesink-fix-segmentation-fault-when-.patch | 35 ++ ...-gl-viv-fb-fix-wrong-pos-x-y-calculate-in.patch | 52 ++ ...-gl-viv-fb-transform-screen-coordinate-to.patch | 52 ++ ...-glimagesink-expose-should-do-redisplay-a.patch | 37 ++ ...-videoaggregator-passthrough-interlace-mo.patch | 99 +++ ...-glvideomixer-need-update-output-geometry.patch | 83 +++ ...-gleglimage-fix-YUY2-import-error-when-up.patch | 30 + ...-glupload-need-upload-each-plane-to-singl.patch | 101 +++ .../gstreamer1.0-plugins-bad_1.12.%.bbappend | 64 ++ 38 files changed, 5649 insertions(+) create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-mpegtsmux-Need-get-pid-when-create-streams.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-mpegvideoparse-Need-detect-picture-coding-type-when-.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0003-modifiy-the-videoparse-rank.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-glfilter-Lost-frame-rate-info-when-fixate-caps.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0005-camerabin-Add-one-property-to-set-sink-element-for-v.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0006-Fix-for-gl-plugin-not-built-in-wayland-backend.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0007-Change-wayland-default-res-to-1024x768.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0008-gl-wayland-fix-loop-test-hang-in-glimagesink.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0009-Fix-glimagesink-wayland-resize-showed-blurred-screen.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0010-support-video-crop-for-glimagesink.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0011-Add-fps-print-in-glimagesink.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0012-glcolorconvert-convert-YUV-to-RGB-use-directviv.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0013-videocompositor-Remove-output-format-alpha-check.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0014-Specific-patches-for-gstplayer-API.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0015-gstplayer-Add-gst_player_get_state-API.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0016-gstplayer-Add-play-stop-sync-API.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0018-Add-imx-physical-memory-allocator.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0019-Add-implement-of-interface-get_phys_addr-to-support-.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0020-Accelerate-gldownload-with-directviv.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0021-ionmemory-dmabuf-memory-allocator-based-on-ion-drive.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0022-ionmemory-support-get-phys-memory.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0023-glupload-add-crop-meta-support-in-dmafd-uploader.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0024-glupload-add-ion-dmabuf-support-in-glupload.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0025-Add-ion-dmabuf-support-in-gldownload.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0026-glframebuffer-check-frame-buffer-status-need-use-spe.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0027-qml-add-EGL-platform-support-for-x11-backend.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0028-kmssink-use-control-node-to-setplane-to-.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0029-kmssink-support-videooverlay-interface.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0030-kmssink-check-scaleable-when-set_caps.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0031-glimagesink-fix-segmentation-fault-when-.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0032-gl-viv-fb-fix-wrong-pos-x-y-calculate-in.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0033-gl-viv-fb-transform-screen-coordinate-to.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0034-glimagesink-expose-should-do-redisplay-a.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0035-videoaggregator-passthrough-interlace-mo.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0036-glvideomixer-need-update-output-geometry.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0037-gleglimage-fix-YUY2-import-error-when-up.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0038-glupload-need-upload-each-plane-to-singl.patch
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-mpegtsmux-Need-get-pid-when-create-streams.patch new file +44 -0
@@ -0,0 +1,44 @@ +From 0d97f9e8693a498d10ea9ad68caa4f6305c1114e Mon Sep 17 00:00:00 2001 +From: Song Bing <[email protected]> +Date: Wed, 22 Apr 2015 18:06:35 +0800 +Subject: [PATCH 01/26] mpegtsmux: Need get pid when create streams. + +when camerabin use mpegtsmux as muxer, start video recording and then +stop video recording and then start video recording, mpegtsmux get wrong +pid. + +Upstream-Status: Pending [https://bugzilla.gnome.org/show_bug.cgi?id=748288] + +--- + gst/mpegtsmux/mpegtsmux.c | 15 +++++++++++++++ + 1 file changed, 15 insertions(+) + +diff --git a/gst/mpegtsmux/mpegtsmux.c b/gst/mpegtsmux/mpegtsmux.c +index 67c2b72..cfd7c2a 100644 +--- a/gst/mpegtsmux/mpegtsmux.c ++++ b/gst/mpegtsmux/mpegtsmux.c +@@ -833,6 +833,21 @@ mpegtsmux_create_streams (MpegTsMux * mux) + } else { + ts_data->prog_id = DEFAULT_PROG_ID; + } ++ ++ if (!ts_data->pid) { ++ gint pid = -1; ++ ++ name = GST_PAD_NAME (c_data->pad); ++ if (name != NULL && sscanf (name, "sink_%d", &pid) == 1) { ++ if (tsmux_find_stream (mux->tsmux, pid)) { ++ GST_WARNING_OBJECT (mux, "Duplicate PID"); ++ } ++ } else { ++ pid = tsmux_get_new_pid (mux->tsmux); ++ } ++ ++ ts_data->pid = pid; ++ } + } + + ts_data->prog = +-- +1.9.1 +
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-mpegvideoparse-Need-detect-picture-coding-type-when-.patch new file +47 -0
47 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0003-modifiy-the-videoparse-rank.patch new file +77 -0
77 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-glfilter-Lost-frame-rate-info-when-fixate-caps.patch new file +51 -0
51 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0005-camerabin-Add-one-property-to-set-sink-element-for-v.patch new file +181 -0
181 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0006-Fix-for-gl-plugin-not-built-in-wayland-backend.patch new file +34 -0
@@ -0,0 +1,34 @@ +From 3015f801add8e0d004954d5e76ee9d8dcb6b88f6 Mon Sep 17 00:00:00 2001 +From: Jian <[email protected]> +Date: Fri, 24 Apr 2015 17:12:02 +0800 +Subject: [PATCH 06/26] Fix for gl plugin not built in wayland backend +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Inappropriate [i.MX specific] + +Signed-off-by: Jian <[email protected]> + +Conflicts: + configure.ac +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index b0a5b2a..8a05495 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -776,7 +776,7 @@ case $host in + LIBS=$old_LIBS + CFLAGS=$old_CFLAGS + +- PKG_CHECK_MODULES(WAYLAND_EGL, wayland-client >= 1.0 wayland-cursor >= 1.0 wayland-egl >= 9.0, HAVE_WAYLAND_EGL=yes, HAVE_WAYLAND_EGL=no) ++ PKG_CHECK_MODULES(WAYLAND_EGL, wayland-client >= 1.0 wayland-cursor >= 1.0 wayland-egl >= 1.0, HAVE_WAYLAND_EGL=yes, HAVE_WAYLAND_EGL=no) + + # OS X and iOS always have GL available + case $host in +-- +1.9.1 +
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0007-Change-wayland-default-res-to-1024x768.patch new file +41 -0
41 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0008-gl-wayland-fix-loop-test-hang-in-glimagesink.patch new file +142 -0
142 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0009-Fix-glimagesink-wayland-resize-showed-blurred-screen.patch new file +32 -0
@@ -0,0 +1,32 @@ +From 60647b7ab90b2efdbfb9c342be8acfde94d12fad Mon Sep 17 00:00:00 2001 +From: Haihua Hu <[email protected]> +Date: Tue, 8 Dec 2015 16:06:34 +0800 +Subject: [PATCH 09/26] Fix glimagesink wayland resize showed blurred screen + +For imx, wl_egl_window type is not a wl_proxy object. Can not set +queue to wl_egl_window object. + +Upstream-Status: Inappropriate [i.MX specific] + +Signed-off-by: Haihua Hu <[email protected]> +--- + gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.c | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.c b/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.c +index 326e051..c6a4d19 100644 +--- a/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.c ++++ b/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.c +@@ -325,9 +325,6 @@ create_surfaces (GstGLWindowWaylandEGL * window_egl) + + window_egl->window.native = + wl_egl_window_create (window_egl->window.surface, width, height); +- if (window_egl->window.surface_queue) +- wl_proxy_set_queue ((struct wl_proxy *) window_egl->window.native, +- window_egl->window.surface_queue); + } + } + +-- +1.9.1 +
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0010-support-video-crop-for-glimagesink.patch new file +151 -0
151 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0011-Add-fps-print-in-glimagesink.patch new file +86 -0
86 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0012-glcolorconvert-convert-YUV-to-RGB-use-directviv.patch new file +168 -0
168 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0013-videocompositor-Remove-output-format-alpha-check.patch new file +35 -0
@@ -0,0 +1,35 @@ +From cd2d0769aaf242ecb24e18b7acc027bfb846b7c8 Mon Sep 17 00:00:00 2001 +From: Song Bing <[email protected]> +Date: Tue, 16 Aug 2016 13:11:57 +0800 +Subject: [PATCH 13/26] videocompositor: Remove output format alpha check + +Remove output format alpha check, or output without alpha will +fail if input has alpha. + +Upstream-Status: Pending + +https://bugzilla.gnome.org/show_bug.cgi?id=769962 +--- + gst-libs/gst/video/gstvideoaggregator.c | 4 +--- + 1 file changed, 1 insertion(+), 3 deletions(-) + +diff --git a/gst-libs/gst/video/gstvideoaggregator.c b/gst-libs/gst/video/gstvideoaggregator.c +index 1616b27..a987c15 100644 +--- a/gst-libs/gst/video/gstvideoaggregator.c ++++ b/gst-libs/gst/video/gstvideoaggregator.c +@@ -781,11 +781,9 @@ gst_video_aggregator_update_src_caps (GstVideoAggregator * vagg) + g_return_val_if_fail (finfo != NULL, FALSE); + + if (at_least_one_alpha && !(finfo->flags & GST_VIDEO_FORMAT_FLAG_ALPHA)) { +- GST_ELEMENT_ERROR (vagg, CORE, NEGOTIATION, ++ GST_WARNING_OBJECT (vagg, + ("At least one of the input pads contains alpha, but configured caps don't support alpha."), + ("Either convert your inputs to not contain alpha or add a videoconvert after the aggregator")); +- ret = FALSE; +- goto done; + } + } + +-- +1.9.1 +
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0014-Specific-patches-for-gstplayer-API.patch new file +367 -0
367 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0015-gstplayer-Add-gst_player_get_state-API.patch new file +63 -0
63 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0016-gstplayer-Add-play-stop-sync-API.patch new file +182 -0
182 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0018-Add-imx-physical-memory-allocator.patch new file +443 -0
443 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0019-Add-implement-of-interface-get_phys_addr-to-support-.patch new file +48 -0
48 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0020-Accelerate-gldownload-with-directviv.patch new file +698 -0
698 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0021-ionmemory-dmabuf-memory-allocator-based-on-ion-drive.patch new file +390 -0
110 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0022-ionmemory-support-get-phys-memory.patch new file +94 -0
94 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0023-glupload-add-crop-meta-support-in-dmafd-uploader.patch new file +52 -0
52 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0024-glupload-add-ion-dmabuf-support-in-glupload.patch new file +477 -0
477 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0025-Add-ion-dmabuf-support-in-gldownload.patch new file +473 -0
473 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0026-glframebuffer-check-frame-buffer-status-need-use-spe.patch new file +132 -0
132 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0027-qml-add-EGL-platform-support-for-x11-backend.patch new file +63 -0
63 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0028-kmssink-use-control-node-to-setplane-to-.patch new file +108 -0
108 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0029-kmssink-support-videooverlay-interface.patch new file +343 -0
343 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0030-kmssink-check-scaleable-when-set_caps.patch new file +74 -0
74 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0031-glimagesink-fix-segmentation-fault-when-.patch new file +35 -0
Lines of this file are not shown. View the raw message.
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0032-gl-viv-fb-fix-wrong-pos-x-y-calculate-in.patch new file +52 -0
52 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0033-gl-viv-fb-transform-screen-coordinate-to.patch new file +52 -0
52 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0034-glimagesink-expose-should-do-redisplay-a.patch new file +37 -0
Lines of this file are not shown. View the raw message.
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0035-videoaggregator-passthrough-interlace-mo.patch new file +99 -0
99 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0036-glvideomixer-need-update-output-geometry.patch new file +83 -0
83 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0037-gleglimage-fix-YUY2-import-error-when-up.patch new file +30 -0
Lines of this file are not shown. View the raw message.
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0038-glupload-need-upload-each-plane-to-singl.patch new file +101 -0
101 lines not on this page · raw message
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.%.bbappend +64 -0
64 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.13.6
Part of the diff is not shown here. View the raw message.
Re: [PATCH v2 2/6] gstreamer1.0: Add NXP specific patches
In reply to Stefan AgnerQuoted 438 lines · Stefan Agner
From: Stefan Agner <[email protected]>
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 <[email protected]>--- .../0001-handle-base-parse-error.patch | 35 ++++++++ ...ith-gst-inspect-Chris-Lord-chris-openedha.patch | 32 ++++++++ ...e-unset-FLAG_DISCONT-when-push-to-adapter.patch | 33 ++++++++ ...e-Need-push-adapter-remainning-data-in-pa.patch | 51 ++++++++++++ ...or-should-proceed-non-active-pad-buffer-e.patch | 51 ++++++++++++ ...0006-poll-Add-check-if-can-read-event-API.patch | 95 ++++++++++++++++++++++ ...or-Need-flush-when-set-active-pad-and-the.patch | 68 ++++++++++++++++ .../gstreamer/gstreamer1.0_1.12.%.bbappend | 16 ++++ 8 files changed, 381 insertions(+) create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0/0001-handle-base-parse-error.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0/0002-Fix-crash-with-gst-inspect-Chris-Lord-chris-openedha.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0/0003-baseparse-unset-FLAG_DISCONT-when-push-to-adapter.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0/0004-gstbaseparse-Need-push-adapter-remainning-data-in-pa.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0/0005-inputselector-should-proceed-non-active-pad-buffer-e.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0/0006-poll-Add-check-if-can-read-event-API.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0/0007-inputselector-Need-flush-when-set-active-pad-and-the.patch create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0_1.12.%.bbappendrecipes-multimedia/gstreamer/gstreamer1.0/0001-handle-base-parse-error.patch new file +35
-0@@ -0,0 +1,35 @@ +From 01b047cbb5e326fb3980bb6fc5206a82ea401170 Mon Sep 17 00:00:00 2001 +From: Lyon Wang <[email protected]> +Date: Wed, 14 Oct 2015 14:15:11 +0800 +Subject: [PATCH 1/7] handle base parse error + +There is no need to send GST_ELEMENT_ERROR +becuase ohter tracks may still good to play. +no need to end the element, just print error message is enough + +Upstream-Status: Submitted [https://bugzilla.gnome.org/show_bug.cgi?id=741542] + +Signed-off-by: Lyon Wang <[email protected]> +--- + libs/gst/base/gstbaseparse.c | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c +index df67dd0..2f45d23 100644 +--- a/libs/gst/base/gstbaseparse.c ++++ b/libs/gst/base/gstbaseparse.c +@@ -1324,8 +1324,9 @@ gst_base_parse_sink_event_default (GstBaseParse * parse, GstEvent * event) + /* If we STILL have zero frames processed, fire an error */ + if (parse->priv->framecount == 0 && !parse->priv->saw_gaps && + !parse->priv->first_buffer) { +- GST_ELEMENT_ERROR (parse, STREAM, WRONG_TYPE, +- ("No valid frames found before end of stream"), (NULL)); ++ /* GST_ELEMENT_ERROR (parse, STREAM, WRONG_TYPE, ++ ("No valid frames found before end of stream"), (NULL));*/ ++ GST_ERROR_OBJECT(parse, "No valid frames decoded before end of stream"); + } + + if (!parse->priv->saw_gaps +-- +1.9.1 +recipes-multimedia/gstreamer/gstreamer1.0/0002-Fix-crash-with-gst-inspect-Chris-Lord-chris-openedha.patch new file +32
-0@@ -0,0 +1,32 @@ +From 1bd9b30040ad23d86faa577baeb1c6734f39150f Mon Sep 17 00:00:00 2001 +From: Carlos Rafael Giani <[email protected]> +Date: Sat, 6 Apr 2013 23:52:11 +0200 +Subject: [PATCH 2/7] Fix crash with gst-inspect Chris Lord + <[email protected]> + +Upstream-Status: Pending + +Signed-off-by: Carlos Rafael Giani <[email protected]> + +Conflicts: + tools/gst-inspect.c +--- + tools/gst-inspect.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c +index e420e4c..95983bc 100644 +--- a/tools/gst-inspect.c ++++ b/tools/gst-inspect.c +@@ -1548,7 +1548,7 @@ main (int argc, char *argv[]) + g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE); + g_option_context_add_group (ctx, gst_init_get_option_group ()); + if (!g_option_context_parse (ctx, &argc, &argv, &err)) { +- g_printerr ("Error initializing: %s\n", err->message); ++ g_printerr ("Error initializing: %s\n", err ? err->message : "(null)"); + g_clear_error (&err); + g_option_context_free (ctx); + return -1; +-- +1.9.1 +recipes-multimedia/gstreamer/gstreamer1.0/0003-baseparse-unset-FLAG_DISCONT-when-push-to-adapter.patch new file +33
-0@@ -0,0 +1,33 @@ +From 95d80584413c60cfe302cb2b55f59ffdca2a67b9 Mon Sep 17 00:00:00 2001 +From: Lyon Wang <[email protected]> +Date: Wed, 4 Nov 2015 18:16:52 +0800 +Subject: [PATCH 3/7] [baseparse] unset FLAG_DISCONT when push to adapter + +Since DISCONT flag will be handled by priv->discont flag. +There is no need to copy DISCONT flag to adapter. +Otherwise, the DISCONT flag will alwasys been set on each frame, +for the first chain in buffer. + + +Upstream-Status: Pending [https://bugzilla.gnome.org/show_bug.cgi?id=757575] + +Signed-off-by: Lyon Wang <[email protected]> +--- + libs/gst/base/gstbaseparse.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c +index 2f45d23..3c52887 100644 +--- a/libs/gst/base/gstbaseparse.c ++++ b/libs/gst/base/gstbaseparse.c +@@ -3157,6 +3157,7 @@ gst_base_parse_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer) + parse->priv->discont = TRUE; + } + } ++ GST_BUFFER_FLAG_UNSET(buffer, GST_BUFFER_FLAG_DISCONT); + gst_adapter_push (parse->priv->adapter, buffer); + } + +-- +1.9.1 +recipes-multimedia/gstreamer/gstreamer1.0/0004-gstbaseparse-Need-push-adapter-remainning-data-in-pa.patch new file +51
-0@@ -0,0 +1,51 @@ +From b7f3a53b5d43c40fc1432c12f2ca314c5dbf403b Mon Sep 17 00:00:00 2001 +From: Lyon Wang <[email protected]> +Date: Fri, 15 Jan 2016 17:30:14 +0800 +Subject: [PATCH 4/7] [gstbaseparse] Need push adapter remainning data in pass + through mode + +When switching to pass through mode, there might be remainning +data in the adpater, and it will be no chance to push to downstream when +in pass through mode. +So need check adapter available data and push downstream to avoid missing data + +package: gstreamer1.0 +Upstream-Status: Pending [https://bugzilla.gnome.org/show_bug.cgi?id=760513] + +Signed-off-by: Lyon Wang <[email protected]> +--- + libs/gst/base/gstbaseparse.c | 15 +++++++++++++++ + 1 file changed, 15 insertions(+) + mode change 100644 => 100755 libs/gst/base/gstbaseparse.c + +diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c +old mode 100644 +new mode 100755 +index 3c52887..6d3eacf +--- a/libs/gst/base/gstbaseparse.c ++++ b/libs/gst/base/gstbaseparse.c +@@ -3138,6 +3138,21 @@ gst_base_parse_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer) + && parse->priv->passthrough)) { + GstBaseParseFrame frame; + ++ av = gst_adapter_available (parse->priv->adapter); ++ if (av) { ++ tmpbuf = gst_adapter_take_buffer (parse->priv->adapter, av); ++ ++ if (parse->priv->upstream_format == GST_FORMAT_TIME) { ++ tmpbuf = gst_buffer_make_writable (tmpbuf); ++ GST_BUFFER_PTS (tmpbuf) = parse->priv->next_pts; ++ GST_BUFFER_DTS (tmpbuf) = parse->priv->next_dts; ++ GST_BUFFER_DURATION (tmpbuf) = GST_CLOCK_TIME_NONE; ++ } ++ ++ ret = gst_pad_push (parse->srcpad, tmpbuf); ++ ++ } ++ + gst_base_parse_frame_init (&frame); + frame.buffer = gst_buffer_make_writable (buffer); + ret = gst_base_parse_push_frame (parse, &frame); +-- +1.9.1 +recipes-multimedia/gstreamer/gstreamer1.0/0005-inputselector-should-proceed-non-active-pad-buffer-e.patch new file +51
-0@@ -0,0 +1,51 @@ +From 7f7398acb5dc5fdc904f6684eab2bb072be25de7 Mon Sep 17 00:00:00 2001 +From: Song Bing <[email protected]> +Date: Wed, 11 May 2016 16:57:23 +0800 +Subject: [PATCH 5/7] inputselector: should proceed non-active pad buffer even + if active pad reach eos + +non-active pad will be blocked if active pad reach eos in inputselector. +Which will cause all pipeline be blocked. +Inputselector should proceed non-active pad buffer based on clock even +if active pad reach eos +Change to sync with clock for better user experience. + + +Upstream-Status: Pending [https://bugzilla.gnome.org/show_bug.cgi?id=766261] + +Signed-off-by: Song Bing [email protected] +--- + plugins/elements/gstinputselector.c | 10 ++++++++-- + 1 file changed, 8 insertions(+), 2 deletions(-) + +diff --git a/plugins/elements/gstinputselector.c b/plugins/elements/gstinputselector.c +index f3f95e6..f6e1993 100644 +--- a/plugins/elements/gstinputselector.c ++++ b/plugins/elements/gstinputselector.c +@@ -772,7 +772,7 @@ gst_input_selector_wait_running_time (GstInputSelector * sel, + } + + cur_running_time = GST_CLOCK_TIME_NONE; +- if (sel->sync_mode == GST_INPUT_SELECTOR_SYNC_MODE_CLOCK) { ++ if (sel->sync_mode == GST_INPUT_SELECTOR_SYNC_MODE_CLOCK || active_selpad->eos) { + clock = gst_element_get_clock (GST_ELEMENT_CAST (sel)); + if (clock) { + GstClockTime base_time; +@@ -823,7 +823,13 @@ gst_input_selector_wait_running_time (GstInputSelector * sel, + "Waiting for active streams to advance. %" GST_TIME_FORMAT " >= %" + GST_TIME_FORMAT, GST_TIME_ARGS (running_time), + GST_TIME_ARGS (cur_running_time)); +- GST_INPUT_SELECTOR_WAIT (sel); ++ if (active_selpad->eos) { ++ GST_INPUT_SELECTOR_UNLOCK (sel); ++ g_usleep (5000); ++ GST_INPUT_SELECTOR_LOCK (sel); ++ } else { ++ GST_INPUT_SELECTOR_WAIT (sel); ++ } + } else { + GST_INPUT_SELECTOR_UNLOCK (sel); + break; +-- +1.9.1 +recipes-multimedia/gstreamer/gstreamer1.0/0006-poll-Add-check-if-can-read-event-API.patch new file +95
-0@@ -0,0 +1,95 @@ +From 6daed66db8a147783acc117b76afa2e779c8c12c Mon Sep 17 00:00:00 2001 +From: Song Bing <[email protected]> +Date: Thu, 20 Aug 2015 14:57:46 +0800 +Subject: [PATCH 6/7] poll: Add check if can read event API + +Need check if can read event of buffer for video decoder based on +V4L2 driver. Add the API for it. + + +Upstream-Status: Pending [https://bugzilla.gnome.org/show_bug.cgi?id=752962] + +Signed-off-by: Song Bing [email protected] +--- + gst/gstpoll.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ + gst/gstpoll.h | 1 + + 2 files changed, 53 insertions(+) + +diff --git a/gst/gstpoll.c b/gst/gstpoll.c +index fd672ed..084f6f7 100644 +--- a/gst/gstpoll.c ++++ b/gst/gstpoll.c +@@ -1242,6 +1242,58 @@ gst_poll_fd_can_read (const GstPoll * set, GstPollFD * fd) + return res; + } + ++static gboolean ++gst_poll_fd_can_read_pri_unlocked (const GstPoll * set, GstPollFD * fd) ++{ ++ gboolean res = FALSE; ++ gint idx; ++ ++ idx = find_index (set->active_fds, fd); ++ if (idx >= 0) { ++#ifndef G_OS_WIN32 ++ struct pollfd *pfd = &g_array_index (set->active_fds, struct pollfd, idx); ++ ++ res = (pfd->revents & POLLPRI) != 0; ++#else ++ WinsockFd *wfd = &g_array_index (set->active_fds, WinsockFd, idx); ++ ++ res = (wfd->events.lNetworkEvents & FD_ACCEPT) != 0; ++#endif ++ } else { ++ GST_WARNING ("%p: couldn't find fd !", set); ++ } ++ GST_DEBUG ("%p: fd (fd:%d, idx:%d) %d", set, fd->fd, fd->idx, res); ++ ++ return res; ++} ++ ++/** ++ * gst_poll_fd_can_read_pri: ++ * @set: a file descriptor set. ++ * @fd: a file descriptor. ++ * ++ * Check if @fd in @set has data to be read. ++ * ++ * Returns: %TRUE if the descriptor has data to be read. ++ */ ++gboolean ++gst_poll_fd_can_read_pri (const GstPoll * set, GstPollFD * fd) ++{ ++ gboolean res = FALSE; ++ ++ g_return_val_if_fail (set != NULL, FALSE); ++ g_return_val_if_fail (fd != NULL, FALSE); ++ g_return_val_if_fail (fd->fd >= 0, FALSE); ++ ++ g_mutex_lock (&((GstPoll *) set)->lock); ++ ++ res = gst_poll_fd_can_read_pri_unlocked (set, fd); ++ ++ g_mutex_unlock (&((GstPoll *) set)->lock); ++ ++ return res; ++} ++ + /** + * gst_poll_fd_can_write: + * @set: a file descriptor set. +diff --git a/gst/gstpoll.h b/gst/gstpoll.h +index ef6dcea..0513648 100644 +--- a/gst/gstpoll.h ++++ b/gst/gstpoll.h +@@ -79,6 +79,7 @@ void gst_poll_fd_ignored (GstPoll *set, GstPollFD *fd); + gboolean gst_poll_fd_has_closed (const GstPoll *set, GstPollFD *fd); + gboolean gst_poll_fd_has_error (const GstPoll *set, GstPollFD *fd); + gboolean gst_poll_fd_can_read (const GstPoll *set, GstPollFD *fd); ++gboolean gst_poll_fd_can_read_pri (const GstPoll *set, GstPollFD *fd); + gboolean gst_poll_fd_can_write (const GstPoll *set, GstPollFD *fd); + + gint gst_poll_wait (GstPoll *set, GstClockTime timeout); +-- +1.9.1 +recipes-multimedia/gstreamer/gstreamer1.0/0007-inputselector-Need-flush-when-set-active-pad-and-the.patch new file +68
-0@@ -0,0 +1,68 @@ +From 9860e95c4c6bcec422b6c83a2650ef76dd6a5488 Mon Sep 17 00:00:00 2001 +From: Song Bing <[email protected]> +Date: Wed, 10 May 2017 11:24:46 +0800 +Subject: [PATCH 7/7] inputselector: Need flush when set active pad and then + seek in PAUSE state + + +Upstream-Status: Pending [https://bugzilla.gnome.org/show_bug.cgi?id=782417] + +Signed-off-by: Song Bing [email protected] +--- + plugins/elements/gstinputselector.c | 11 ++++++++++- + 1 file changed, 10 insertions(+), 1 deletion(-) + +diff --git a/plugins/elements/gstinputselector.c b/plugins/elements/gstinputselector.c +index f6e1993..54400dd 100644 +--- a/plugins/elements/gstinputselector.c ++++ b/plugins/elements/gstinputselector.c +@@ -161,6 +161,7 @@ struct _GstSelectorPad + guint32 segment_seqnum; /* sequence number of the current segment */ + + gboolean events_pending; /* TRUE if sticky events need to be updated */ ++ gboolean flush_events_pending;/* unblock old active track */ + + gboolean sending_cached_buffers; + GQueue *cached_buffers; +@@ -339,6 +340,7 @@ gst_selector_pad_reset (GstSelectorPad * pad) + pad->eos = FALSE; + pad->eos_sent = FALSE; + pad->events_pending = FALSE; ++ pad->flush_events_pending = FALSE; + pad->discont = FALSE; + pad->flushing = FALSE; + gst_segment_init (&pad->segment, GST_FORMAT_UNDEFINED); +@@ -557,6 +559,8 @@ gst_selector_pad_event (GstPad * pad, GstObject * parent, GstEvent * event) + selpad->flushing = TRUE; + sel->eos = FALSE; + selpad->group_done = FALSE; ++ if (selpad->flush_events_pending) ++ forward = TRUE; + GST_INPUT_SELECTOR_BROADCAST (sel); + break; + case GST_EVENT_FLUSH_STOP: +@@ -1136,6 +1140,7 @@ gst_selector_pad_chain (GstPad * pad, GstObject * parent, GstBuffer * buf) + buf = gst_buffer_ref (buf); + res = gst_pad_push (sel->srcpad, buf); + GST_LOG_OBJECT (pad, "Buffer %p forwarded result=%d", buf, res); ++ selpad->flush_events_pending = FALSE; + + GST_INPUT_SELECTOR_LOCK (sel); + +@@ -1389,8 +1394,12 @@ gst_input_selector_set_active_pad (GstInputSelector * self, GstPad * pad) + active_pad_p = &self->active_sinkpad; + gst_object_replace ((GstObject **) active_pad_p, GST_OBJECT_CAST (pad)); + +- if (old && old != new) ++ if (old && old != new) { + gst_pad_push_event (GST_PAD_CAST (old), gst_event_new_reconfigure ()); ++ /* Old will be blocked on gst_pad_push() when set active pad in PAUSE ++ * state. Need flush when set active pad and then seek in PAUSE state */ ++ old->flush_events_pending = TRUE; ++ } + if (new) + gst_pad_push_event (GST_PAD_CAST (new), gst_event_new_reconfigure ()); + +-- +1.9.1 +recipes-multimedia/gstreamer/gstreamer1.0_1.12.%.bbappend new file +0
-0
recipes-multimedia/gstreamer/gstreamer1.0_1.12.%.bbappend line 3
Quoted 3 lines
recipes-multimedia/gstreamer/gstreamer1.0_1.12.%.bbappend new file +3
-0@@ -0,0 +1,16 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +DEPENDS += " elfutils"
Is this depends really required? if so, it also must be conditional.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Re: [PATCH v2 3/6] gstreamer1.0-plugins-base: Add NXP specific patches
In reply to Stefan AgnerOn Tue, Dec 19, 2017 at 9:06 PM, Stefan Agner <[email protected]> wrote:
...
recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.12.%.bbappend line 4
Quoted 2 lines
recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.12.%.bbappend new file +2
-0+# Enable pango lib +PACKAGECONFIG_append = " pango "
Conditional
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Re: [PATCH v2 5/6] gstreamer1.0-plugins-bad: Add NXP specific patches
In reply to Stefan AgnerOn Tue, Dec 19, 2017 at 9:06 PM, Stefan Agner <[email protected]> wrote:
...
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.%.bbappend line 58
Quoted 2 lines
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.%.bbappend +2
-0+# include fragment shaders +FILES_${PN}-opengl += "/usr/share/*.fs"
Same drill
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.%.bbappend line 61
Quoted 2 lines
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.%.bbappend +2
-0+PACKAGE_ARCH_imxpxp = "${MACHINE_SOCARCH}" +PACKAGE_ARCH_mx8 = "${MACHINE_SOCARCH}"
Ok but keep mx8 out here as we did not review the SoC family yet. Also this can be handled automatically by the filter.
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.%.bbappend line 66
Quoted 4 lines
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.%.bbappend +4
-0+# Fix libgstbadion-1.0.so.0 which is under built directory cannot be found +do_compile_prepend () { + export GIR_EXTRA_LIBS_PATH="${B}/gst-libs/gst/ion/.libs" +}
Here too.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Re: [PATCH v2 2/6] gstreamer1.0: Add NXP specific patches
In reply to Otavio SalvadorQuoted 1 line · Otavio Salvador
On Tue, Dec 19, 2017 at 9:06 PM, Stefan Agner <[email protected]> wrote:
<snip>
Quoted 11 lines
recipes-multimedia/gstreamer/gstreamer1.0_1.12.%.bbappend line 3
Quoted 9 lines
recipes-multimedia/gstreamer/gstreamer1.0_1.12.%.bbappend new file +3
-0@@ -0,0 +1,16 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +DEPENDS += " elfutils"Is this depends really required? if so, it also must be conditional.
It seems not to be required. I think this is handled in the oe-core recipe now with
PACKAGECONFIG[dw] = "--with-dw,--without-dw,elfutils"
--
Stefan
Re: [PATCH v2 3/6] gstreamer1.0-plugins-base: Add NXP specific patches
In reply to Otavio SalvadorQuoted 6 lines · Otavio Salvador
On Tue, Dec 19, 2017 at 9:06 PM, Stefan Agner <[email protected]> wrote:
...recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.12.%.bbappend line 4
Quoted 2 lines
recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.12.%.bbappend new file +2
-0+# Enable pango lib +PACKAGECONFIG_append = " pango "Conditional
Hm, pango is actually also unconditionally added by OE gstreamer1.0-plugins-base recipes PACKAGECONFIG set with ??=... I will remove this.
--
Stefan
Re: [PATCH v2 5/6] gstreamer1.0-plugins-bad: Add NXP specific patches
In reply to Otavio SalvadorQuoted 7 lines · Otavio Salvador
On Tue, Dec 19, 2017 at 9:06 PM, Stefan Agner <[email protected]> wrote:
...recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.%.bbappend line 58
Quoted 2 lines
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.%.bbappend +2
-0+# include fragment shaders +FILES_${PN}-opengl += "/usr/share/*.fs"Same drill
That actually seems superfluous, there is no *.fs file in the patches, and none get installed in a gstreamer1.0-plugins-bad package. Will remove this.
Quoted 6 lines
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.%.bbappend line 61
Quoted 2 lines
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.%.bbappend +2
-0+PACKAGE_ARCH_imxpxp = "${MACHINE_SOCARCH}" +PACKAGE_ARCH_mx8 = "${MACHINE_SOCARCH}"Ok but keep mx8 out here as we did not review the SoC family yet. Also this can be handled automatically by the filter.
Don't understand that last sentence. Setting PACKAGE_ARCH can be handled by a filter?
Quoted 6 lines
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.%.bbappend line 66
Quoted 4 lines
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.%.bbappend +4
-0+# Fix libgstbadion-1.0.so.0 which is under built directory cannot be found +do_compile_prepend () { + export GIR_EXTRA_LIBS_PATH="${B}/gst-libs/gst/ion/.libs" +}Here too.
Since ion is only used for mx7ulp will override for that only.
--
Stefan
Re: [PATCH v2 5/6] gstreamer1.0-plugins-bad: Add NXP specific patches
Quoted 1 line · Stefan Agner
On 2017-12-20 01:04, Otavio Salvador wrote:
...
Quoted 9 lines
Quoted 6 lines
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.%.bbappend line 61
Quoted 2 lines
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.%.bbappend +2
-0+PACKAGE_ARCH_imxpxp = "${MACHINE_SOCARCH}" +PACKAGE_ARCH_mx8 = "${MACHINE_SOCARCH}"Ok but keep mx8 out here as we did not review the SoC family yet. Also this can be handled automatically by the filter.
Don't understand that last sentence. Setting
PACKAGE_ARCHcan be handled by a filter?
Yes; check our dynamic package arch class.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750