From 4d67aa25433c6d0a3cabd8d20ecd53f2a23cb7af Mon Sep 17 00:00:00 2001 From: vanhofen Date: Wed, 13 Nov 2019 10:41:21 +0100 Subject: [PATCH] - remove obsolete gstreamer patches --- ...ble-yasm-for-libav-when-disable-yasm.patch | 33 ------- ...-configure-check-for-armv7ve-variant.patch | 35 -------- ...st-libav-1.14.4-mips64_cpu_detection.patch | 32 ------- ...to-build-gst-libav-for-i586-with-gcc.patch | 26 ------ ...p-fix-seeking-and-potential-segfault.patch | 64 -------------- ...bad-1.14.4-0004-rtmp-hls-tsdemux-fix.patch | 21 ----- ...-avoid-including-sys-poll.h-directly.patch | 28 ------ ...4-configure-allow-to-disable-libssh2.patch | 62 ------------- ...ns-bad-1.14.4-dvbapi5-fix-old-kernel.patch | 22 ----- ...-sentinels-for-gst_structure_get-etc.patch | 86 ------------------- ...ized-warnings-when-compiling-with-Os.patch | 26 ------ ...ins-bad-1.14.4-hls-main-thread-block.patch | 35 -------- ...-include-directories-when-calling-in.patch | 26 ------ ...ourcc-to-all-ffmpeg-mpeg4-video-caps.patch | 46 ---------- ...ect-reference-to-gstreamer-sdp-in-Ma.patch | 28 ------ ...d_segment-after-sink-pad-received-GS.patch | 73 ---------------- ...et-caps-from-src-pad-when-query-caps.patch | 42 --------- ...gio_unix_2_0-dependency-configurable.patch | 42 --------- ...t-dafault-value-for-MPEG4-without-co.patch | 60 ------------- ...evert-use-new-gst-adapter-get-buffer.patch | 34 -------- 20 files changed, 821 deletions(-) delete mode 100644 patches/gst-libav-1.14.4-0001-Disable-yasm-for-libav-when-disable-yasm.patch delete mode 100644 patches/gst-libav-1.14.4-0001-configure-check-for-armv7ve-variant.patch delete mode 100644 patches/gst-libav-1.14.4-mips64_cpu_detection.patch delete mode 100644 patches/gst-libav-1.14.4-workaround-to-build-gst-libav-for-i586-with-gcc.patch delete mode 100644 patches/gst-plugins-bad-1.14.4-0001-rtmp-fix-seeking-and-potential-segfault.patch delete mode 100644 patches/gst-plugins-bad-1.14.4-0004-rtmp-hls-tsdemux-fix.patch delete mode 100644 patches/gst-plugins-bad-1.14.4-avoid-including-sys-poll.h-directly.patch delete mode 100644 patches/gst-plugins-bad-1.14.4-configure-allow-to-disable-libssh2.patch delete mode 100644 patches/gst-plugins-bad-1.14.4-dvbapi5-fix-old-kernel.patch delete mode 100644 patches/gst-plugins-bad-1.14.4-ensure-valid-sentinels-for-gst_structure_get-etc.patch delete mode 100644 patches/gst-plugins-bad-1.14.4-fix-maybe-uninitialized-warnings-when-compiling-with-Os.patch delete mode 100644 patches/gst-plugins-bad-1.14.4-hls-main-thread-block.patch delete mode 100644 patches/gst-plugins-base-1.14.4-0003-riff-add-missing-include-directories-when-calling-in.patch delete mode 100644 patches/gst-plugins-base-1.14.4-0003-riff-media-added-fourcc-to-all-ffmpeg-mpeg4-video-caps.patch delete mode 100644 patches/gst-plugins-base-1.14.4-0004-rtsp-drop-incorrect-reference-to-gstreamer-sdp-in-Ma.patch delete mode 100644 patches/gst-plugins-base-1.14.4-0004-subparse-set-need_segment-after-sink-pad-received-GS.patch delete mode 100644 patches/gst-plugins-base-1.14.4-get-caps-from-src-pad-when-query-caps.patch delete mode 100644 patches/gst-plugins-base-1.14.4-make-gio_unix_2_0-dependency-configurable.patch delete mode 100644 patches/gst-plugins-good-1.14.4-0001-gstrtpmp4gpay-set-dafault-value-for-MPEG4-without-co.patch delete mode 100644 patches/gstreamer-1.14.4-revert-use-new-gst-adapter-get-buffer.patch diff --git a/patches/gst-libav-1.14.4-0001-Disable-yasm-for-libav-when-disable-yasm.patch b/patches/gst-libav-1.14.4-0001-Disable-yasm-for-libav-when-disable-yasm.patch deleted file mode 100644 index 1d99ad12..00000000 --- a/patches/gst-libav-1.14.4-0001-Disable-yasm-for-libav-when-disable-yasm.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 54bba228ea52d01fd84941d97be23c03f9862b64 Mon Sep 17 00:00:00 2001 -From: Carlos Rafael Giani -Date: Sat, 6 Apr 2013 01:22:22 +0200 -Subject: [PATCH] Disable yasm for libav when --disable-yasm - -Upstream-Status: Inappropriate [configuration] - -Signed-off-by: Shane Wang -Signed-off-by: Carlos Rafael Giani ---- - configure.ac | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/configure.ac b/configure.ac -index 22ede88..ef3c050 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -305,6 +305,12 @@ else - emblibav_configure_args="$emblibav_configure_args --enable-gpl" - fi - -+ AC_ARG_ENABLE(yasm, -+ [AC_HELP_STRING([--disable-yasm], [disable use of yasm assembler])]) -+ if test "x$enable_yasm" = "xno"; then -+ emblibav_configure_args="$emblibav_configure_args --disable-yasm" -+ fi -+ - # if we are cross-compiling, tell libav so - case $host in - *android*) --- -1.8.2 - diff --git a/patches/gst-libav-1.14.4-0001-configure-check-for-armv7ve-variant.patch b/patches/gst-libav-1.14.4-0001-configure-check-for-armv7ve-variant.patch deleted file mode 100644 index 24d5af5a..00000000 --- a/patches/gst-libav-1.14.4-0001-configure-check-for-armv7ve-variant.patch +++ /dev/null @@ -1,35 +0,0 @@ -From aac5902d3c9cb35c771e760d0e487622aa2e116a Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Thu, 20 Apr 2017 10:38:18 -0700 -Subject: [PATCH] configure: check for armv7ve variant - -OE passes -mcpu and -march via cmdline and if -package tries to detect one of it own then it -should be compatible otherwise, newer gcc7+ will -error out - -Check for relevant preprocessor macro to determine -armv7ve architecture - -Upstream-Status: Pending - -Signed-off-by: Khem Raj ---- - gst-libs/ext/libav/configure | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/gst-libs/ext/libav/configure b/gst-libs/ext/libav/configure -index 4a5e477..727818e 100755 ---- a/gst-libs/ext/libav/configure -+++ b/gst-libs/ext/libav/configure -@@ -4659,6 +4659,7 @@ - elif check_arm_arch 6KZ; then echo armv6zk - elif check_arm_arch 6ZK; then echo armv6zk - elif check_arm_arch 6T2; then echo armv6t2 -+ elif check_arm_arch EXT_IDIV; then echo armv7ve - elif check_arm_arch 7; then echo armv7 - elif check_arm_arch 7A 7_A; then echo armv7-a - elif check_arm_arch 7S; then echo armv7-a --- -2.12.2 - diff --git a/patches/gst-libav-1.14.4-mips64_cpu_detection.patch b/patches/gst-libav-1.14.4-mips64_cpu_detection.patch deleted file mode 100644 index 7a0b4488..00000000 --- a/patches/gst-libav-1.14.4-mips64_cpu_detection.patch +++ /dev/null @@ -1,32 +0,0 @@ -It will add -mips64r6 and -mips64r2 to cmdline which will -cause conflicts - -in OE we user mips32r2 and mips64r2 for mips arch versions -so there is no benefit of detecting it automatically by -poking at tools especially in cross env - -Fixes errors like - -linking -mnan=2008 module with previous -mnan=legacy modules -failed to merge target specific data of file - --Khem -Upstream-Status: Inappropriate [OE-Specific] - -Index: gst-libav-1.10.1/gst-libs/ext/libav/configure -=================================================================== ---- gst-libav-1.10.1.orig/gst-libs/ext/libav/configure -+++ gst-libav-1.10.1/gst-libs/ext/libav/configure -@@ -5269,12 +5269,9 @@ elif enabled mips; then - - # Enable minimum ISA based on selected options - if enabled mips64; then -- enabled mips64r6 && check_inline_asm_flags mips64r6 '"dlsa $0, $0, $0, 1"' '-mips64r6' - enabled mips64r2 && check_inline_asm_flags mips64r2 '"dext $0, $0, 0, 1"' '-mips64r2' - disabled mips64r6 && disabled mips64r2 && check_inline_asm_flags mips64r1 '"daddi $0, $0, 0"' '-mips64' - else -- enabled mips32r6 && check_inline_asm_flags mips32r6 '"aui $0, $0, 0"' '-mips32r6' -- enabled mips32r5 && check_inline_asm_flags mips32r5 '"eretnc"' '-mips32r5' - enabled mips32r2 && check_inline_asm_flags mips32r2 '"ext $0, $0, 0, 1"' '-mips32r2' - disabled mips32r6 && disabled mips32r5 && disabled mips32r2 && check_inline_asm_flags mips32r1 '"addi $0, $0, 0"' '-mips32' - fi diff --git a/patches/gst-libav-1.14.4-workaround-to-build-gst-libav-for-i586-with-gcc.patch b/patches/gst-libav-1.14.4-workaround-to-build-gst-libav-for-i586-with-gcc.patch deleted file mode 100644 index 36abf860..00000000 --- a/patches/gst-libav-1.14.4-workaround-to-build-gst-libav-for-i586-with-gcc.patch +++ /dev/null @@ -1,26 +0,0 @@ -Description: Workaround to build libav for i586 with gcc 4.9.2 by avoiding memset -Author: Bernhard Übelacker - ---- -Bug-Debian: https://bugs.debian.org/783082 -Last-Update: 2015-04-28 - -Upstream-Status: Backport [debian] - -Signed-off-by: Robert Yang - ---- gst-libav-1.4.5.orig/gst-libs/ext/libav/libavcodec/h264_cabac.c -+++ gst-libav-1.4.5/gst-libs/ext/libav/libavcodec/h264_cabac.c -@@ -2020,7 +2020,11 @@ decode_intra_mb: - // In deblocking, the quantizer is 0 - h->cur_pic.qscale_table[mb_xy] = 0; - // All coeffs are present -- memset(h->non_zero_count[mb_xy], 16, 48); -+ /*memset(h->non_zero_count[mb_xy], 16, 48);*/ -+ /* avoiding this memset because it leads at least with gcc4.9.2 to error: 'asm' operand has impossible constraints */ -+ for (size_t i = 0; i < 48; i++) { -+ ( (unsigned char*)(h->non_zero_count[mb_xy]) ) [i] = 16; -+ } - h->cur_pic.mb_type[mb_xy] = mb_type; - sl->last_qscale_diff = 0; - return 0; diff --git a/patches/gst-plugins-bad-1.14.4-0001-rtmp-fix-seeking-and-potential-segfault.patch b/patches/gst-plugins-bad-1.14.4-0001-rtmp-fix-seeking-and-potential-segfault.patch deleted file mode 100644 index 0ada1982..00000000 --- a/patches/gst-plugins-bad-1.14.4-0001-rtmp-fix-seeking-and-potential-segfault.patch +++ /dev/null @@ -1,64 +0,0 @@ -From cd1832688e660e26054445041d6b79734d1f1089 Mon Sep 17 00:00:00 2001 -From: Athanasios Oikonomou -Date: Tue, 28 Oct 2014 08:48:20 +0200 -Subject: [PATCH] rtmp: fix seeking and potential segfault - -Segfault info: https://bugzilla.gnome.org/show_bug.cgi?id=739263 -Seeking info: http://forums.openpli.org/topic/32910-mediaplayer-seek-doesnt-work-with-rtmp-streams/ - ---- - ext/rtmp/gstrtmpsrc.c | 20 +------------------- - 1 file changed, 1 insertion(+), 19 deletions(-) - -diff --git a/ext/rtmp/gstrtmpsrc.c b/ext/rtmp/gstrtmpsrc.c -index 12931a2..52db7f4 100644 ---- a/ext/rtmp/gstrtmpsrc.c -+++ b/ext/rtmp/gstrtmpsrc.c -@@ -89,7 +89,6 @@ static void gst_rtmp_src_get_property (GObject * object, guint prop_id, - static void gst_rtmp_src_finalize (GObject * object); - - static gboolean gst_rtmp_src_connect (GstRTMPSrc * src); --static gboolean gst_rtmp_src_unlock (GstBaseSrc * src); - static gboolean gst_rtmp_src_stop (GstBaseSrc * src); - static gboolean gst_rtmp_src_start (GstBaseSrc * src); - static gboolean gst_rtmp_src_is_seekable (GstBaseSrc * src); -@@ -145,7 +144,6 @@ gst_rtmp_src_class_init (GstRTMPSrcClass * klass) - - gstbasesrc_class->start = GST_DEBUG_FUNCPTR (gst_rtmp_src_start); - gstbasesrc_class->stop = GST_DEBUG_FUNCPTR (gst_rtmp_src_stop); -- gstbasesrc_class->unlock = GST_DEBUG_FUNCPTR (gst_rtmp_src_unlock); - gstbasesrc_class->is_seekable = GST_DEBUG_FUNCPTR (gst_rtmp_src_is_seekable); - gstbasesrc_class->prepare_seek_segment = - GST_DEBUG_FUNCPTR (gst_rtmp_src_prepare_seek_segment); -@@ -644,23 +642,6 @@ error: - return FALSE; - } - --static gboolean --gst_rtmp_src_unlock (GstBaseSrc * basesrc) --{ -- GstRTMPSrc *rtmpsrc = GST_RTMP_SRC (basesrc); -- -- GST_DEBUG_OBJECT (rtmpsrc, "unlock"); -- -- /* This closes the socket, which means that any pending socket calls -- * error out. */ -- if (rtmpsrc->rtmp) { -- RTMP_Close (rtmpsrc->rtmp); -- } -- -- return TRUE; --} -- -- - static gboolean - gst_rtmp_src_stop (GstBaseSrc * basesrc) - { -@@ -669,6 +650,7 @@ gst_rtmp_src_stop (GstBaseSrc * basesrc) - src = GST_RTMP_SRC (basesrc); - - if (src->rtmp) { -+ RTMP_Close (src->rtmp); - RTMP_Free (src->rtmp); - src->rtmp = NULL; - } diff --git a/patches/gst-plugins-bad-1.14.4-0004-rtmp-hls-tsdemux-fix.patch b/patches/gst-plugins-bad-1.14.4-0004-rtmp-hls-tsdemux-fix.patch deleted file mode 100644 index 8f9e1744..00000000 --- a/patches/gst-plugins-bad-1.14.4-0004-rtmp-hls-tsdemux-fix.patch +++ /dev/null @@ -1,21 +0,0 @@ -From c496fdd9874261f29ae485e2907c3f838c95a1d3 Mon Sep 17 00:00:00 2001 -From: captain -Date: Mon, 5 Dec 2016 11:52:55 +0100 - ---- - gst/mpegtsdemux/tsdemux.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/gst/mpegtsdemux/tsdemux.c b/gst/mpegtsdemux/tsdemux.c -index b0ff238..b7b423e 100644 ---- a/gst/mpegtsdemux/tsdemux.c -+++ b/gst/mpegtsdemux/tsdemux.c -@@ -1761,7 +1761,7 @@ gst_ts_demux_stream_added (MpegTSBase * base, MpegTSBaseStream * bstream, - stream->first_pts = GST_CLOCK_TIME_NONE; - stream->raw_pts = -1; - stream->raw_dts = -1; -- stream->pending_ts = TRUE; -+ stream->pending_ts = program->pcr_pid < 0x1fff; - stream->nb_out_buffers = 0; - stream->gap_ref_buffers = 0; - stream->gap_ref_pts = GST_CLOCK_TIME_NONE; diff --git a/patches/gst-plugins-bad-1.14.4-avoid-including-sys-poll.h-directly.patch b/patches/gst-plugins-bad-1.14.4-avoid-including-sys-poll.h-directly.patch deleted file mode 100644 index 85003a22..00000000 --- a/patches/gst-plugins-bad-1.14.4-avoid-including-sys-poll.h-directly.patch +++ /dev/null @@ -1,28 +0,0 @@ -From ee46a56bcf94e9dbfed76d5682597491f4a69a54 Mon Sep 17 00:00:00 2001 -From: Andre McCurdy -Date: Wed, 3 Feb 2016 18:05:41 -0800 -Subject: [PATCH] avoid including directly - -musl libc generates warnings if is included directly. - -Upstream-Status: Pending - -Signed-off-by: Andre McCurdy - ---- - sys/dvb/gstdvbsrc.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/sys/dvb/gstdvbsrc.c b/sys/dvb/gstdvbsrc.c -index d9bee26..2edd9fa 100644 ---- a/sys/dvb/gstdvbsrc.c -+++ b/sys/dvb/gstdvbsrc.c -@@ -97,7 +97,7 @@ - #include - #include - #include --#include -+#include - #include - #include - #include diff --git a/patches/gst-plugins-bad-1.14.4-configure-allow-to-disable-libssh2.patch b/patches/gst-plugins-bad-1.14.4-configure-allow-to-disable-libssh2.patch deleted file mode 100644 index a77b8766..00000000 --- a/patches/gst-plugins-bad-1.14.4-configure-allow-to-disable-libssh2.patch +++ /dev/null @@ -1,62 +0,0 @@ -From 21a14e481621598ce2c44239f634017b1562c482 Mon Sep 17 00:00:00 2001 -From: Wenzong Fan -Date: Thu, 18 Sep 2014 02:24:07 -0400 -Subject: [PATCH] gstreamer1.0-plugins-bad: allow to disable libssh2 - -libssh2 is automatically linked to if present, this undetermined -dependency may cause build errors like: - - .../x86_64-poky-linux/4.9.0/ld: cannot find -lssh2 - -libssh2 isn't an oe-core recipe, so allow to disable it from -configure. - -Upstream-Status: Pending - -Signed-off-by: Wenzong Fan - ---- - configure.ac | 23 +++++++++++++++++------ - 1 file changed, 17 insertions(+), 6 deletions(-) - -diff --git a/configure.ac b/configure.ac -index 5fe28fa..072e073 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -1197,6 +1197,15 @@ AG_GST_CHECK_FEATURE(CHROMAPRINT, [chromaprint], chromaprint, [ - ]) - - dnl *** Curl *** -+AC_ARG_ENABLE([libssh2], -+ [ --enable-libssh2 enable LIBSSH2 support @<:@default=auto@:>@], -+ [case "${enableval}" in -+ yes) NEED_SSH2=yes ;; -+ no) NEED_SSH2=no ;; -+ auto) NEED_SSH2=auto ;; -+ *) AC_MSG_ERROR([bad value ${enableval} for --enable-libssh2]) ;; -+ esac],[NEED_SSH2=auto]) -+ - translit(dnm, m, l) AM_CONDITIONAL(USE_CURL, true) - AG_GST_CHECK_FEATURE(CURL, [Curl plugin], curl, [ - PKG_CHECK_MODULES(CURL, libcurl >= 7.35.0, [ -@@ -1219,12 +1228,14 @@ AG_GST_CHECK_FEATURE(CURL, [Curl plugin], curl, [ - ]) - AC_SUBST(CURL_CFLAGS) - AC_SUBST(CURL_LIBS) -- PKG_CHECK_MODULES(SSH2, libssh2 >= 1.4.3, [ -- HAVE_SSH2="yes" -- AC_DEFINE(HAVE_SSH2, 1, [Define if libssh2 is available]) -- ], [ -- HAVE_SSH2="no" -- ]) -+ if test "x$NEED_SSH2" != "xno"; then -+ PKG_CHECK_MODULES(SSH2, libssh2 >= 1.4.3, [ -+ HAVE_SSH2="yes" -+ AC_DEFINE(HAVE_SSH2, 1, [Define if libssh2 is available]) -+ ], [ -+ HAVE_SSH2="no" -+ ]) -+ fi - AM_CONDITIONAL(USE_SSH2, test "x$HAVE_SSH2" = "xyes") - AC_SUBST(SSH2_CFLAGS) - AC_SUBST(SSH2_LIBS) diff --git a/patches/gst-plugins-bad-1.14.4-dvbapi5-fix-old-kernel.patch b/patches/gst-plugins-bad-1.14.4-dvbapi5-fix-old-kernel.patch deleted file mode 100644 index fb69dda9..00000000 --- a/patches/gst-plugins-bad-1.14.4-dvbapi5-fix-old-kernel.patch +++ /dev/null @@ -1,22 +0,0 @@ -From 344b6a92bb2138d81be002dd8846979a5f648ada Mon Sep 17 00:00:00 2001 -From: Captain -Date: Sat, 24 Dec 2016 21:48:54 +0100 - ---- - sys/dvb/gstdvbsrc.c | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/sys/dvb/gstdvbsrc.c b/sys/dvb/gstdvbsrc.c -index 2edd9fa..0b38c8b 100644 ---- a/sys/dvb/gstdvbsrc.c -+++ b/sys/dvb/gstdvbsrc.c -@@ -306,7 +306,9 @@ gst_dvbsrc_modulation_get_type (void) - {APSK_16, "16APSK", "16apsk"}, - {APSK_32, "32APSK", "32apsk"}, - {DQPSK, "DQPSK", "dqpsk"}, -+#if HAVE_V5_MINOR(7) - {QAM_4_NR, "QAM 4 NR", "qam-4-nr"}, -+#endif - {0, NULL, NULL}, - }; - diff --git a/patches/gst-plugins-bad-1.14.4-ensure-valid-sentinels-for-gst_structure_get-etc.patch b/patches/gst-plugins-bad-1.14.4-ensure-valid-sentinels-for-gst_structure_get-etc.patch deleted file mode 100644 index 03fbff96..00000000 --- a/patches/gst-plugins-bad-1.14.4-ensure-valid-sentinels-for-gst_structure_get-etc.patch +++ /dev/null @@ -1,86 +0,0 @@ -From fcd806e86763f00934a76829a28c36d9f85aa144 Mon Sep 17 00:00:00 2001 -From: Andre McCurdy -Date: Tue, 9 Feb 2016 14:00:00 -0800 -Subject: [PATCH] ensure valid sentinals for gst_structure_get() etc - -For GStreamer functions declared with G_GNUC_NULL_TERMINATED, -ie __attribute__((__sentinel__)), gcc will generate a warning if the -last parameter passed to the function is not NULL (where a valid NULL -in this context is defined as zero with any pointer type). - -The C callers to such functions within gst-plugins-bad use the C NULL -definition (ie ((void*)0)), which is a valid sentinel. - -However the C++ NULL definition (ie 0L), is not a valid sentinel -without an explicit cast to a pointer type. - -Upstream-Status: Pending - -Signed-off-by: Andre McCurdy - ---- - sys/decklink/gstdecklink.cpp | 10 +++++----- - sys/decklink/gstdecklinkaudiosrc.cpp | 2 +- - sys/decklink/gstdecklinkvideosink.cpp | 2 +- - 3 files changed, 7 insertions(+), 7 deletions(-) - -diff --git a/sys/decklink/gstdecklink.cpp b/sys/decklink/gstdecklink.cpp -index e1f91ba..94b0a24 100644 ---- a/sys/decklink/gstdecklink.cpp -+++ b/sys/decklink/gstdecklink.cpp -@@ -548,7 +548,7 @@ gst_decklink_mode_get_structure (GstDecklinkModeEnum e, BMDPixelFormat f, - "pixel-aspect-ratio", GST_TYPE_FRACTION, mode->par_n, mode->par_d, - "interlace-mode", G_TYPE_STRING, - mode->interlaced ? "interleaved" : "progressive", -- "framerate", GST_TYPE_FRACTION, mode->fps_n, mode->fps_d, NULL); -+ "framerate", GST_TYPE_FRACTION, mode->fps_n, mode->fps_d, (void*)NULL); - - if (input && mode->interlaced) { - if (mode->tff) -@@ -563,16 +563,16 @@ gst_decklink_mode_get_structure (GstDecklinkModeEnum e, BMDPixelFormat f, - case bmdFormat8BitYUV: /* '2vuy' */ - gst_structure_set (s, "format", G_TYPE_STRING, "UYVY", - "colorimetry", G_TYPE_STRING, mode->colorimetry, -- "chroma-site", G_TYPE_STRING, "mpeg2", NULL); -+ "chroma-site", G_TYPE_STRING, "mpeg2", (void*)NULL); - break; - case bmdFormat10BitYUV: /* 'v210' */ -- gst_structure_set (s, "format", G_TYPE_STRING, "v210", NULL); -+ gst_structure_set (s, "format", G_TYPE_STRING, "v210", (void*)NULL); - break; - case bmdFormat8BitARGB: /* 'ARGB' */ -- gst_structure_set (s, "format", G_TYPE_STRING, "ARGB", NULL); -+ gst_structure_set (s, "format", G_TYPE_STRING, "ARGB", (void*)NULL); - break; - case bmdFormat8BitBGRA: /* 'BGRA' */ -- gst_structure_set (s, "format", G_TYPE_STRING, "BGRA", NULL); -+ gst_structure_set (s, "format", G_TYPE_STRING, "BGRA", (void*)NULL); - break; - case bmdFormat10BitRGB: /* 'r210' Big-endian RGB 10-bit per component with SMPTE video levels (64-960). Packed as 2:10:10:10 */ - case bmdFormat12BitRGB: /* 'R12B' Big-endian RGB 12-bit per component with full range (0-4095). Packed as 12-bit per component */ -diff --git a/sys/decklink/gstdecklinkaudiosrc.cpp b/sys/decklink/gstdecklinkaudiosrc.cpp -index 3abbc50..c71723e 100644 ---- a/sys/decklink/gstdecklinkaudiosrc.cpp -+++ b/sys/decklink/gstdecklinkaudiosrc.cpp -@@ -369,7 +369,7 @@ gst_decklink_audio_src_set_caps (GstBaseSrc * bsrc, GstCaps * caps) - g_mutex_unlock (&self->input->lock); - - if (videosrc) { -- g_object_get (videosrc, "connection", &vconn, NULL); -+ g_object_get (videosrc, "connection", &vconn, (void *) NULL); - gst_object_unref (videosrc); - - switch (vconn) { -diff --git a/sys/decklink/gstdecklinkvideosink.cpp b/sys/decklink/gstdecklinkvideosink.cpp -index cf8b42c..afc6095 100644 ---- a/sys/decklink/gstdecklinkvideosink.cpp -+++ b/sys/decklink/gstdecklinkvideosink.cpp -@@ -172,7 +172,7 @@ reset_framerate (GstCapsFeatures * features, GstStructure * structure, - gpointer user_data) - { - gst_structure_set (structure, "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, -- G_MAXINT, 1, NULL); -+ G_MAXINT, 1, (void *) NULL); - - return TRUE; - } diff --git a/patches/gst-plugins-bad-1.14.4-fix-maybe-uninitialized-warnings-when-compiling-with-Os.patch b/patches/gst-plugins-bad-1.14.4-fix-maybe-uninitialized-warnings-when-compiling-with-Os.patch deleted file mode 100644 index 88cf5a4b..00000000 --- a/patches/gst-plugins-bad-1.14.4-fix-maybe-uninitialized-warnings-when-compiling-with-Os.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 530483755ea44d462cff9419a2cfc71e93ab0b50 Mon Sep 17 00:00:00 2001 -From: Andre McCurdy -Date: Tue, 26 Jan 2016 15:16:01 -0800 -Subject: [PATCH] fix maybe-uninitialized warnings when compiling with -Os - -Upstream-Status: Pending - -Signed-off-by: Andre McCurdy - ---- - gst-libs/gst/codecparsers/gstvc1parser.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/gst-libs/gst/codecparsers/gstvc1parser.c b/gst-libs/gst/codecparsers/gstvc1parser.c -index ac57971..1686f60 100644 ---- a/gst-libs/gst/codecparsers/gstvc1parser.c -+++ b/gst-libs/gst/codecparsers/gstvc1parser.c -@@ -1730,7 +1730,7 @@ gst_vc1_parse_sequence_layer (const guint8 * data, gsize size, - GstVC1SeqLayer * seqlayer) - { - guint32 tmp; -- guint8 tmp8; -+ guint8 tmp8 = 0; - guint8 structA[8] = { 0, }; - guint8 structB[12] = { 0, }; - GstBitReader br; diff --git a/patches/gst-plugins-bad-1.14.4-hls-main-thread-block.patch b/patches/gst-plugins-bad-1.14.4-hls-main-thread-block.patch deleted file mode 100644 index dfad456d..00000000 --- a/patches/gst-plugins-bad-1.14.4-hls-main-thread-block.patch +++ /dev/null @@ -1,35 +0,0 @@ -From e141dcb746aabfa268884557b4544e4bfcde0e15 Mon Sep 17 00:00:00 2001 -From: christophecvr -Date: Fri, 24 Feb 2017 14:34:33 +0100 -Subject: [PATCH] Try-out continu in hls to avoid blocking of main thread. - - Looks like the error self was false, - If we just continue it retries,and - the media just continues to play ok. - The main advantage is that we avoid a - main e2 thread blocked with stb freeze - as result. Even if the media would stop, - We do not have a frozen stb. - - modified: ext/hls/m3u8.c - ---- - ext/hls/m3u8.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/ext/hls/m3u8.c b/ext/hls/m3u8.c -index 594a963..74f3fd6 100644 ---- a/ext/hls/m3u8.c -+++ b/ext/hls/m3u8.c -@@ -358,9 +358,9 @@ check_media_seqnums (GstM3U8 * self, GList * previous_files) - - if (f1->sequence == f2->sequence && !g_str_equal (f1->uri, f2->uri)) { - /* Same sequence, different URI. This is bad! */ -- GST_ERROR ("Media URIs inconsistent (sequence %" G_GINT64_FORMAT -+ GST_ERROR ("Media URIs inconsistent, but try anyway (sequence %" G_GINT64_FORMAT - "): had '%s', got '%s'", f1->sequence, f2->uri, f1->uri); -- return FALSE; -+ //return FALSE; - } else if (f1->sequence < f2->sequence) { - /* Not same sequence but by construction sequence must be higher in the - * new one. All good in that case, if it isn't then this means that diff --git a/patches/gst-plugins-base-1.14.4-0003-riff-add-missing-include-directories-when-calling-in.patch b/patches/gst-plugins-base-1.14.4-0003-riff-add-missing-include-directories-when-calling-in.patch deleted file mode 100644 index 2d92e4ac..00000000 --- a/patches/gst-plugins-base-1.14.4-0003-riff-add-missing-include-directories-when-calling-in.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 7bcc1bccc916edd3901365ff7ebfb6f9f23a51db Mon Sep 17 00:00:00 2001 -From: Alexander Kanavin -Date: Mon, 26 Oct 2015 17:29:37 +0200 -Subject: [PATCH] riff: add missing include directories when calling - introspection scanner - -Upstream-Status: Pending [review on oe-core maillist] -Signed-off-by: Alexander Kanavin - ---- - gst-libs/gst/riff/Makefile.am | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/gst-libs/gst/riff/Makefile.am b/gst-libs/gst/riff/Makefile.am -index c8c588a..c096453 100644 ---- a/gst-libs/gst/riff/Makefile.am -+++ b/gst-libs/gst/riff/Makefile.am -@@ -41,6 +41,8 @@ libgstriff_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) - # --strip-prefix=Gst \ - # --warn-all \ - # --c-include "gst/riff/riff.h" \ -+# -I$(top_srcdir)/gst-libs \ -+# -I$(top_builddir)/gst-libs \ - # --add-include-path=$(builddir)/../tag \ - # --add-include-path=$(builddir)/../audio \ - # --add-include-path=$(PKG_CONFIG_SYSROOT_DIR)`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \ diff --git a/patches/gst-plugins-base-1.14.4-0003-riff-media-added-fourcc-to-all-ffmpeg-mpeg4-video-caps.patch b/patches/gst-plugins-base-1.14.4-0003-riff-media-added-fourcc-to-all-ffmpeg-mpeg4-video-caps.patch deleted file mode 100644 index b0af437f..00000000 --- a/patches/gst-plugins-base-1.14.4-0003-riff-media-added-fourcc-to-all-ffmpeg-mpeg4-video-caps.patch +++ /dev/null @@ -1,46 +0,0 @@ -From 8a2f3284af4e6fdcca0ca1062dfd5a2b6e2cecd9 Mon Sep 17 00:00:00 2001 -From: christophecvr -Date: Sat, 5 Dec 2015 19:32:32 +0100 -Subject: [PATCH] riff-media: added fourcc to all mpeg4 video caps - - modified: gst-libs/gst/riff/riff-media.c - ---- - gst-libs/gst/riff/riff-media.c | 11 +++++++++++ - 1 file changed, 11 insertions(+) - -diff --git a/gst-libs/gst/riff/riff-media.c b/gst-libs/gst/riff/riff-media.c -index 2d6aa55..3bf0fe0 100644 ---- a/gst-libs/gst/riff/riff-media.c -+++ b/gst-libs/gst/riff/riff-media.c -@@ -466,12 +466,19 @@ gst_riff_create_video_caps (guint32 codec_fcc, - case GST_MAKE_FOURCC ('F', 'M', 'P', '4'): - case GST_MAKE_FOURCC ('U', 'M', 'P', '4'): - case GST_MAKE_FOURCC ('F', 'F', 'D', 'S'): -+ { -+ gchar *fstr = NULL; - caps = gst_caps_new_simple ("video/mpeg", - "mpegversion", G_TYPE_INT, 4, - "systemstream", G_TYPE_BOOLEAN, FALSE, NULL); -+ fstr = g_strdup_printf ("%" GST_FOURCC_FORMAT, -+ GST_FOURCC_ARGS (codec_fcc)); -+ gst_caps_set_simple (caps, "fourcc", G_TYPE_STRING, fstr, NULL); -+ g_free (fstr); - if (codec_name) - *codec_name = g_strdup ("FFmpeg MPEG-4"); - break; -+ } - - case GST_MAKE_FOURCC ('3', 'I', 'V', '1'): - case GST_MAKE_FOURCC ('3', 'I', 'V', '2'): -@@ -497,6 +504,10 @@ gst_riff_create_video_caps (guint32 codec_fcc, - caps = gst_caps_new_simple ("video/mpeg", - "mpegversion", G_TYPE_INT, 4, - "systemstream", G_TYPE_BOOLEAN, FALSE, NULL); -+ {gchar *fstr = g_strdup_printf ("%" GST_FOURCC_FORMAT, -+ GST_FOURCC_ARGS (codec_fcc)); -+ gst_caps_set_simple (caps, "fourcc", G_TYPE_STRING, fstr, NULL); -+ g_free (fstr);} - if (codec_name) - *codec_name = g_strdup ("MPEG-4"); - break; diff --git a/patches/gst-plugins-base-1.14.4-0004-rtsp-drop-incorrect-reference-to-gstreamer-sdp-in-Ma.patch b/patches/gst-plugins-base-1.14.4-0004-rtsp-drop-incorrect-reference-to-gstreamer-sdp-in-Ma.patch deleted file mode 100644 index 18ce6017..00000000 --- a/patches/gst-plugins-base-1.14.4-0004-rtsp-drop-incorrect-reference-to-gstreamer-sdp-in-Ma.patch +++ /dev/null @@ -1,28 +0,0 @@ -From 130d150007d12fea7a7f0888b1dcc525bd325fd3 Mon Sep 17 00:00:00 2001 -From: Alexander Kanavin -Date: Mon, 26 Oct 2015 17:30:14 +0200 -Subject: [PATCH] rtsp: drop incorrect reference to gstreamer-sdp in - Makefile.am - -Upstream-Status: Pending [review on oe-core maillist] -Signed-off-by: Alexander Kanavin - ---- - gst-libs/gst/rtsp/Makefile.am | 1 - - 1 file changed, 1 deletion(-) - -diff --git a/gst-libs/gst/rtsp/Makefile.am b/gst-libs/gst/rtsp/Makefile.am -index 9fc5558ce..8db79eceb 100644 ---- a/gst-libs/gst/rtsp/Makefile.am -+++ b/gst-libs/gst/rtsp/Makefile.am -@@ -82,7 +82,6 @@ - --pkg gio-2.0 \ - --pkg gstreamer-@GST_API_VERSION@ \ - --pkg gstreamer-base-@GST_API_VERSION@ \ -- --pkg gstreamer-sdp-@GST_API_VERSION@ \ - --pkg-export gstreamer-rtsp-@GST_API_VERSION@ \ - --add-init-section="$(INTROSPECTION_INIT)" \ - --output $@ \ --- -2.17.1.windows.2 - diff --git a/patches/gst-plugins-base-1.14.4-0004-subparse-set-need_segment-after-sink-pad-received-GS.patch b/patches/gst-plugins-base-1.14.4-0004-subparse-set-need_segment-after-sink-pad-received-GS.patch deleted file mode 100644 index b0eb51d5..00000000 --- a/patches/gst-plugins-base-1.14.4-0004-subparse-set-need_segment-after-sink-pad-received-GS.patch +++ /dev/null @@ -1,73 +0,0 @@ -From 8a2404f78282bdbc16e8f0afac10cf83f24517ba Mon Sep 17 00:00:00 2001 -From: Mingke Wang -Date: Thu, 19 Mar 2015 14:20:26 +0800 -Subject: [PATCH] subparse: set need_segment after sink pad received - GST_EVENT_SEGMENT - -subparse works in push mode, chain funciton will be called once -up stream element finished the seeking and flushing. -if set need_segment flag in src pad event handler, the segment -event will be pushed earlier, result in the subtitle text will -be send out to down stream from the beginning. - -Upstream-Status: Submitted [https://bugzilla.gnome.org/show_bug.cgi?id=747498] - -Signed-off-by: Mingke Wang - ---- - gst/subparse/gstsubparse.c | 26 ++++++++++++-------------- - 1 file changed, 12 insertions(+), 14 deletions(-) - mode change 100644 => 100755 gst/subparse/gstsubparse.c - -diff --git a/gst/subparse/gstsubparse.c b/gst/subparse/gstsubparse.c -old mode 100644 -new mode 100755 -index cf29a56..98c43fc ---- a/gst/subparse/gstsubparse.c -+++ b/gst/subparse/gstsubparse.c -@@ -270,24 +270,20 @@ gst_sub_parse_src_event (GstPad * pad, GstObject * parent, GstEvent * event) - goto beach; - } - -+ /* Apply the seek to our segment */ -+ gst_segment_do_seek (&self->segment, rate, format, flags, -+ start_type, start, stop_type, stop, &update); -+ -+ GST_DEBUG_OBJECT (self, "segment after seek: %" GST_SEGMENT_FORMAT, -+ &self->segment); -+ - /* Convert that seek to a seeking in bytes at position 0, - FIXME: could use an index */ - ret = gst_pad_push_event (self->sinkpad, - gst_event_new_seek (rate, GST_FORMAT_BYTES, flags, - GST_SEEK_TYPE_SET, 0, GST_SEEK_TYPE_NONE, 0)); - -- if (ret) { -- /* Apply the seek to our segment */ -- gst_segment_do_seek (&self->segment, rate, format, flags, -- start_type, start, stop_type, stop, &update); -- -- GST_DEBUG_OBJECT (self, "segment after seek: %" GST_SEGMENT_FORMAT, -- &self->segment); -- -- /* will mark need_segment when receiving segment from upstream, -- * after FLUSH and all that has happened, -- * rather than racing with chain */ -- } else { -+ if (!ret) { - GST_WARNING_OBJECT (self, "seek to 0 bytes failed"); - } - -@@ -1877,8 +1869,10 @@ gst_sub_parse_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) - gst_event_parse_segment (event, &s); - if (s->format == GST_FORMAT_TIME) - gst_event_copy_segment (event, &self->segment); -- GST_DEBUG_OBJECT (self, "newsegment (%s)", -- gst_format_get_name (self->segment.format)); -+ GST_DEBUG_OBJECT (self, "newsegment (%s) %" GST_SEGMENT_FORMAT, -+ gst_format_get_name (self->segment.format), &self->segment); -+ -+ self->need_segment = TRUE; - - /* if not time format, we'll either start with a 0 timestamp anyway or - * it's following a seek in which case we'll have saved the requested diff --git a/patches/gst-plugins-base-1.14.4-get-caps-from-src-pad-when-query-caps.patch b/patches/gst-plugins-base-1.14.4-get-caps-from-src-pad-when-query-caps.patch deleted file mode 100644 index b0a40d4c..00000000 --- a/patches/gst-plugins-base-1.14.4-get-caps-from-src-pad-when-query-caps.patch +++ /dev/null @@ -1,42 +0,0 @@ -From dddfe1a890dfdadc94dbc07f2cc380c56fc54971 Mon Sep 17 00:00:00 2001 -From: zhouming -Date: Wed, 14 May 2014 10:16:20 +0800 -Subject: [PATCH] ENGR00312515: get caps from src pad when query caps - -https://bugzilla.gnome.org/show_bug.cgi?id=728312 - -Upstream-Status: Pending - -Signed-off-by: zhouming - ---- - gst-libs/gst/tag/gsttagdemux.c | 13 +++++++++++++ - 1 file changed, 13 insertions(+) - mode change 100644 => 100755 gst-libs/gst/tag/gsttagdemux.c - -diff --git a/gst-libs/gst/tag/gsttagdemux.c b/gst-libs/gst/tag/gsttagdemux.c -old mode 100644 -new mode 100755 -index 8a127c8..71c5d78 ---- a/gst-libs/gst/tag/gsttagdemux.c -+++ b/gst-libs/gst/tag/gsttagdemux.c -@@ -1767,6 +1767,19 @@ gst_tag_demux_pad_query (GstPad * pad, GstObject * parent, GstQuery * query) - } - break; - } -+ case GST_QUERY_CAPS: -+ { -+ -+ /* We can hijack caps query if we typefind already */ -+ if (demux->priv->src_caps) { -+ gst_query_set_caps_result (query, demux->priv->src_caps); -+ res = TRUE; -+ } else { -+ res = gst_pad_query_default (pad, parent, query); -+ } -+ break; -+ } -+ - default: - res = gst_pad_query_default (pad, parent, query); - break; diff --git a/patches/gst-plugins-base-1.14.4-make-gio_unix_2_0-dependency-configurable.patch b/patches/gst-plugins-base-1.14.4-make-gio_unix_2_0-dependency-configurable.patch deleted file mode 100644 index 710907cf..00000000 --- a/patches/gst-plugins-base-1.14.4-make-gio_unix_2_0-dependency-configurable.patch +++ /dev/null @@ -1,42 +0,0 @@ -From 105e4e43133854a507097f00aa4cbdde747690ee Mon Sep 17 00:00:00 2001 -From: Andre McCurdy -Date: Wed, 20 Jan 2016 13:00:00 -0800 -Subject: [PATCH] make gio_unix_2_0 dependency configurable - -Prior to 1.7.1, gst-plugins-base accepted a configure option to -disable gio_unix_2_0, however it was implemented incorrectly using -AG_GST_CHECK_FEATURE. That was fixed in 1.7.1 by making the -dependency unconditional. - - http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=aadefefba88afe4acbe64454650f24e7ce7c8d70 - -To make builds deterministic, re-instate support for ---disable-gio_unix_2_0, but implement it using the AC_ARG_ENABLE -instead of AG_GST_CHECK_FEATURE. - -Upstream-Status: Pending - -Signed-off-by: Andre McCurdy - ---- -diff --git a/configure.ac b/configure.ac -index 12807bc..35a0bf3 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -806,9 +806,16 @@ AM_CONDITIONAL(HAVE_PNG, test "x$HAVE_PNG" = "xyes") - AM_CONDITIONAL(HAVE_JPEG, test "x$HAVE_JPEG" = "xyes") - - dnl *** gio-unix-2.0 for tests/check/pipelines/tcp.c *** -+AC_ARG_ENABLE([gio_unix_2_0], -+ [AS_HELP_STRING([--disable-gio_unix_2_0],[disable use of gio_unix_2_0])], -+ [], -+ [enable_gio_unix_2_0=yes]) -+ -+if test "x${enable_gio_unix_2_0}" != "xno"; then - PKG_CHECK_MODULES(GIO_UNIX_2_0, gio-unix-2.0 >= 2.24, - HAVE_GIO_UNIX_2_0="yes", - HAVE_GIO_UNIX_2_0="no") -+fi - AM_CONDITIONAL(USE_GIO_UNIX_2_0, test "x$HAVE_GIO_UNIX_2_0" = "xyes") - - dnl *** finalize CFLAGS, LDFLAGS, LIBS diff --git a/patches/gst-plugins-good-1.14.4-0001-gstrtpmp4gpay-set-dafault-value-for-MPEG4-without-co.patch b/patches/gst-plugins-good-1.14.4-0001-gstrtpmp4gpay-set-dafault-value-for-MPEG4-without-co.patch deleted file mode 100644 index ec0a19b4..00000000 --- a/patches/gst-plugins-good-1.14.4-0001-gstrtpmp4gpay-set-dafault-value-for-MPEG4-without-co.patch +++ /dev/null @@ -1,60 +0,0 @@ -From 51169f365033c5ea8177aefb140b51079a096f4c Mon Sep 17 00:00:00 2001 -From: Song Bing -Date: Tue, 5 Aug 2014 14:40:46 +0800 -Subject: [PATCH] gstrtpmp4gpay: set dafault value for MPEG4 without codec data - in caps. - -https://bugzilla.gnome.org/show_bug.cgi?id=734263 - -Upstream-Status: Submitted - -Signed-off-by: Song Bing - ---- - gst/rtp/gstrtpmp4gpay.c | 19 ++++++++++++++++++- - 1 file changed, 18 insertions(+), 1 deletion(-) - -diff --git a/gst/rtp/gstrtpmp4gpay.c b/gst/rtp/gstrtpmp4gpay.c -index 7333b49..35f2c8c 100644 ---- a/gst/rtp/gstrtpmp4gpay.c -+++ b/gst/rtp/gstrtpmp4gpay.c -@@ -390,6 +390,7 @@ gst_rtp_mp4g_pay_setcaps (GstRTPBasePayload * payload, GstCaps * caps) - const GValue *codec_data; - const gchar *media_type = NULL; - gboolean res; -+ const gchar *name; - - rtpmp4gpay = GST_RTP_MP4G_PAY (payload); - -@@ -400,7 +401,6 @@ gst_rtp_mp4g_pay_setcaps (GstRTPBasePayload * payload, GstCaps * caps) - GST_LOG_OBJECT (rtpmp4gpay, "got codec_data"); - if (G_VALUE_TYPE (codec_data) == GST_TYPE_BUFFER) { - GstBuffer *buffer; -- const gchar *name; - - buffer = gst_value_get_buffer (codec_data); - GST_LOG_OBJECT (rtpmp4gpay, "configuring codec_data"); -@@ -426,6 +426,23 @@ gst_rtp_mp4g_pay_setcaps (GstRTPBasePayload * payload, GstCaps * caps) - - rtpmp4gpay->config = gst_buffer_copy (buffer); - } -+ } else { -+ name = gst_structure_get_name (structure); -+ -+ if (!strcmp (name, "video/mpeg")) { -+ rtpmp4gpay->profile = g_strdup ("1"); -+ -+ /* fixed rate */ -+ rtpmp4gpay->rate = 90000; -+ /* video stream type */ -+ rtpmp4gpay->streamtype = "4"; -+ /* no params for video */ -+ rtpmp4gpay->params = NULL; -+ /* mode */ -+ rtpmp4gpay->mode = "generic"; -+ -+ media_type = "video"; -+ } - } - if (media_type == NULL) - goto config_failed; diff --git a/patches/gstreamer-1.14.4-revert-use-new-gst-adapter-get-buffer.patch b/patches/gstreamer-1.14.4-revert-use-new-gst-adapter-get-buffer.patch deleted file mode 100644 index 403557d2..00000000 --- a/patches/gstreamer-1.14.4-revert-use-new-gst-adapter-get-buffer.patch +++ /dev/null @@ -1,34 +0,0 @@ ---- a/libs/gst/base/gstbaseparse.c -+++ b/libs/gst/base/gstbaseparse.c -@@ -3021,6 +3021,7 @@ - GstBuffer *tmpbuf = NULL; - guint fsize = 1; - gint skip = -1; -+ const guint8 *data; - guint min_size, av; - GstClockTime pts, dts; - -@@ -3227,7 +3228,11 @@ - } - - /* always pass all available data */ -- tmpbuf = gst_adapter_get_buffer (parse->priv->adapter, av); -+ data = gst_adapter_map (parse->priv->adapter, av); -+ /* arrange for actual data to be copied if subclass tries to, -+ * since what is passed is tied to the adapter */ -+ tmpbuf = gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY | -+ GST_MEMORY_FLAG_NO_SHARE, (gpointer) data, av, 0, av, NULL, NULL); - - /* already inform subclass what timestamps we have planned, - * at least if provided by time-based upstream */ -@@ -3242,6 +3247,9 @@ - ret = gst_base_parse_handle_buffer (parse, tmpbuf, &skip, &flush); - tmpbuf = NULL; - -+ /* probably already implicitly unmapped due to adapter operation, -+ * but for good measure ... */ -+ gst_adapter_unmap (parse->priv->adapter); - if (ret != GST_FLOW_OK && ret != GST_FLOW_NOT_LINKED) { - goto done; - } -