ristsrc: Clean caps instead of unref

Fix issue unrefering null caps. Better solution than

```
  if (src->caps)
      gst_caps_unref (src->caps);
```

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6485>
This commit is contained in:
Ruben Gonzalez 2024-03-22 12:57:33 +01:00 committed by Tim-Philipp Müller
parent d2aeaeb73f
commit e6e3ed5679

View file

@ -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);