diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-nvvideosinks/build-fixups.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-nvvideosinks/0001-build-fixups.patch similarity index 77% rename from recipes-multimedia/gstreamer/gstreamer1.0-plugins-nvvideosinks/build-fixups.patch rename to recipes-multimedia/gstreamer/gstreamer1.0-plugins-nvvideosinks/0001-build-fixups.patch index bcd940db..c11623fd 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-nvvideosinks/build-fixups.patch +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-nvvideosinks/0001-build-fixups.patch @@ -1,20 +1,19 @@ -From 5ee6d340e6c8b38a2450bb0a6f95a9eda3636dee Mon Sep 17 00:00:00 2001 +From 32b77145609cbbe62dbb4f9b3736fb6539de56f7 Mon Sep 17 00:00:00 2001 From: Matt Madison Date: Sun, 24 Mar 2019 09:16:52 -0700 Subject: [PATCH] Fix makefile to work with OE builds -and to build for Tegra, not desktop. - +Upstream-Status: Inappropriate [oe specific] Signed-off-by: Matt Madison --- - Makefile | 44 ++++++++++++++++++++++++++++---------------- - 1 file changed, 28 insertions(+), 16 deletions(-) + Makefile | 20 +++++++++++--------- + 1 file changed, 11 insertions(+), 9 deletions(-) -Index: gst-plugins-nv-video-sinks/Makefile -=================================================================== ---- gst-plugins-nv-video-sinks.orig/Makefile -+++ gst-plugins-nv-video-sinks/Makefile +diff --git a/Makefile b/Makefile +index 32c9edd..d00ca79 100644 +--- a/Makefile ++++ b/Makefile @@ -34,18 +34,20 @@ INCLUDES += -I./common \ -I./common/egl \ -I./common/renderer \ diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-nvvideosinks/0002-nv3dsink-memory-leak-fix.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-nvvideosinks/0002-nv3dsink-memory-leak-fix.patch new file mode 100644 index 00000000..29f8104a --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-nvvideosinks/0002-nv3dsink-memory-leak-fix.patch @@ -0,0 +1,29 @@ +From cfddd2bd46c479f104fc3432bc9852a37ae3a477 Mon Sep 17 00:00:00 2001 +From: Matt Madison +Date: Sun, 17 Mar 2024 07:46:13 -0700 +Subject: [PATCH] nv3dsink memory leak fix + +See https://forums.developer.nvidia.com/t/gstreamer-nv3dsink-memory-gstcaps-leaks/283056/19 + +Upstream-Status: Pending + +Signed-off-by: Matt Madison +--- + nv3dsink/gstnv3dsink.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/nv3dsink/gstnv3dsink.c b/nv3dsink/gstnv3dsink.c +index c0a6adb..7ca5a37 100644 +--- a/nv3dsink/gstnv3dsink.c ++++ b/nv3dsink/gstnv3dsink.c +@@ -331,8 +331,10 @@ gst_nv3dsink_get_caps (GstBaseSink * bsink, GstCaps * filter) + + caps = gst_nv_video_context_get_caps (nv3dsink->context); + if (caps) { ++ tmp = result; + result = gst_caps_intersect (result, caps); + gst_caps_unref (caps); ++ gst_caps_unref (tmp); + } + + GST_DEBUG_OBJECT (bsink, "returning caps: %" GST_PTR_FORMAT, result); diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-nvvideosinks_1.14.0-r35.5.0.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-nvvideosinks_1.14.0-r35.5.0.bb index e03e754f..938ff3e6 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-nvvideosinks_1.14.0-r35.5.0.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-nvvideosinks_1.14.0-r35.5.0.bb @@ -8,7 +8,8 @@ LIC_FILES_CHKSUM = "file://LICENSE.libgstnvvideosinks;md5=86ed1f32df3aaa376956e4 TEGRA_SRC_SUBARCHIVE = "Linux_for_Tegra/source/public/libgstnvvideosinks_src.tbz2" require recipes-bsp/tegra-sources/tegra-sources-35.5.0.inc -SRC_URI += "file://build-fixups.patch" +SRC_URI += "file://0001-build-fixups.patch" +SRC_URI += "file://0002-nv3dsink-memory-leak-fix.patch" DEPENDS = "gstreamer1.0 glib-2.0 gstreamer1.0-plugins-base virtual/egl \ tegra-libraries-multimedia tegra-libraries-multimedia-utils \