From 778381fba6a8e1131eeee1ea8175a79340a54cb6 Mon Sep 17 00:00:00 2001 From: Ruben Gonzalez Date: Fri, 22 Mar 2024 12:57:33 +0100 Subject: [PATCH] ristsrc: Clean caps instead of unref Fix issue unrefering null caps. Better solution than ``` if (src->caps) gst_caps_unref (src->caps); ``` Part-of: --- subprojects/gst-plugins-bad/gst/rist/gstristsrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/gst/rist/gstristsrc.c b/subprojects/gst-plugins-bad/gst/rist/gstristsrc.c index c9c0c56b96..4033e38d5c 100644 --- a/subprojects/gst-plugins-bad/gst/rist/gstristsrc.c +++ b/subprojects/gst-plugins-bad/gst/rist/gstristsrc.c @@ -1334,7 +1334,7 @@ gst_rist_src_finalize (GObject * object) g_clear_object (&src->jitterbuffer); g_clear_object (&src->rtxbin); - gst_caps_unref (src->caps); + gst_clear_caps (&src->caps); g_free (src->encoding_name); g_mutex_unlock (&src->bonds_lock);