mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
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:
parent
d2aeaeb73f
commit
e6e3ed5679
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue