mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 09:41:07 +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/6432>
This commit is contained in:
parent
cfe55115c3
commit
778381fba6
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