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/6432>
This commit is contained in:
Ruben Gonzalez 2024-03-22 12:57:33 +01:00
parent cfe55115c3
commit 778381fba6

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