va: vpp: use gst_clear_caps()

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2007>
This commit is contained in:
Víctor Manuel Jáquez Leal 2021-01-15 14:07:19 +01:00
parent 6ae2494887
commit b6e8741c29

View file

@ -162,14 +162,8 @@ gst_va_vpp_dispose (GObject * object)
gst_clear_object (&self->sinkpad_pool);
}
if (self->incaps) {
gst_caps_unref (self->incaps);
self->incaps = NULL;
}
if (self->outcaps) {
gst_caps_unref (self->outcaps);
self->outcaps = NULL;
}
gst_clear_caps (&self->incaps);
gst_clear_caps (&self->outcaps);
gst_clear_object (&self->filter);
gst_clear_object (&self->display);