From e6e3ed56798601563f8ac822432f15bbf8dc912c 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);