va: vpp: use gst_clear_caps()
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2007>
This commit is contained in:
parent
6ae2494887
commit
b6e8741c29
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user