mirror of
https://github.com/lingble/meta-tegra.git
synced 2025-10-30 03:52:41 +00:00
gstreamer1.0-plugins-nvvideosinks: add patch to fix memory leak in nv3dsink
and refresh the makefile patch with an Upstream-Status line. Signed-off-by: Matt Madison <matt@madison.systems>
This commit is contained in:
@@ -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 <matt@madison.systems>
|
From: Matt Madison <matt@madison.systems>
|
||||||
Date: Sun, 24 Mar 2019 09:16:52 -0700
|
Date: Sun, 24 Mar 2019 09:16:52 -0700
|
||||||
Subject: [PATCH] Fix makefile to work with OE builds
|
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 <matt@madison.systems>
|
Signed-off-by: Matt Madison <matt@madison.systems>
|
||||||
---
|
---
|
||||||
Makefile | 44 ++++++++++++++++++++++++++++----------------
|
Makefile | 20 +++++++++++---------
|
||||||
1 file changed, 28 insertions(+), 16 deletions(-)
|
1 file changed, 11 insertions(+), 9 deletions(-)
|
||||||
|
|
||||||
Index: gst-plugins-nv-video-sinks/Makefile
|
diff --git a/Makefile b/Makefile
|
||||||
===================================================================
|
index 32c9edd..d00ca79 100644
|
||||||
--- gst-plugins-nv-video-sinks.orig/Makefile
|
--- a/Makefile
|
||||||
+++ gst-plugins-nv-video-sinks/Makefile
|
+++ b/Makefile
|
||||||
@@ -34,18 +34,20 @@ INCLUDES += -I./common \
|
@@ -34,18 +34,20 @@ INCLUDES += -I./common \
|
||||||
-I./common/egl \
|
-I./common/egl \
|
||||||
-I./common/renderer \
|
-I./common/renderer \
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
From cfddd2bd46c479f104fc3432bc9852a37ae3a477 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Matt Madison <matt@madison.systems>
|
||||||
|
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 <matt@madison.systems>
|
||||||
|
---
|
||||||
|
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);
|
||||||
@@ -8,7 +8,8 @@ LIC_FILES_CHKSUM = "file://LICENSE.libgstnvvideosinks;md5=86ed1f32df3aaa376956e4
|
|||||||
TEGRA_SRC_SUBARCHIVE = "Linux_for_Tegra/source/public/libgstnvvideosinks_src.tbz2"
|
TEGRA_SRC_SUBARCHIVE = "Linux_for_Tegra/source/public/libgstnvvideosinks_src.tbz2"
|
||||||
require recipes-bsp/tegra-sources/tegra-sources-35.5.0.inc
|
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 \
|
DEPENDS = "gstreamer1.0 glib-2.0 gstreamer1.0-plugins-base virtual/egl \
|
||||||
tegra-libraries-multimedia tegra-libraries-multimedia-utils \
|
tegra-libraries-multimedia tegra-libraries-multimedia-utils \
|
||||||
|
|||||||
Reference in New Issue
Block a user