mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-01 12:20:42 +00:00
basesrc: prevent unlikely caps leak
This commit is contained in:
parent
66d19b65fb
commit
247842eaa9
|
@ -2857,6 +2857,8 @@ gst_base_src_default_negotiate (GstBaseSrc * basesrc)
|
|||
}
|
||||
gst_caps_unref (caps);
|
||||
} else {
|
||||
if (caps)
|
||||
gst_caps_unref (caps);
|
||||
GST_DEBUG_OBJECT (basesrc, "no common caps");
|
||||
}
|
||||
return result;
|
||||
|
|
Loading…
Reference in a new issue