From f4aeac45e52b7ef651e770f944c4f4b333965807 Mon Sep 17 00:00:00 2001 From: Matthias Fuchs Date: Thu, 6 Apr 2023 08:54:30 +0200 Subject: [PATCH] glvideoflip: fix leaked caps Part-of: --- subprojects/gst-plugins-base/ext/gl/gstglvideoflip.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-base/ext/gl/gstglvideoflip.c b/subprojects/gst-plugins-base/ext/gl/gstglvideoflip.c index 814f4c3f55..e9215285d0 100644 --- a/subprojects/gst-plugins-base/ext/gl/gstglvideoflip.c +++ b/subprojects/gst-plugins-base/ext/gl/gstglvideoflip.c @@ -345,10 +345,13 @@ _set_active_method (GstGLVideoFlip * vf, GstVideoOrientationMethod method, gst_caps_append (output_caps, gst_caps_ref (templ)); GST_OBJECT_UNLOCK (vf); - g_object_set (vf->input_capsfilter, "caps", gst_caps_ref (caps), NULL); + g_object_set (vf->input_capsfilter, "caps", caps, NULL); g_object_set (vf->output_capsfilter, "caps", output_caps, NULL); g_object_set (vf->transformation, "rotation-z", rot_z, "scale-x", scale_x, "scale-y", scale_y, NULL); + + gst_caps_unref (output_caps); + GST_OBJECT_LOCK (vf); }