vaapipostproc: check for filter before appending caps
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 29 Aug 2019 10:11:36 +0000 (12:11 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 29 Aug 2019 11:03:30 +0000 (11:03 +0000)
commitd671197684c7c1196a4bc2250e3d20442d75d96c
tree0d4862124febe2bdf06f3f57c80e49883895d9e9
parent9fe6b621a2eef6d17ae4f662781da9f3b344b8dc
vaapipostproc: check for filter before appending caps

While ensuring the allowed sink pad caps, the filter attributes set
the frame size restriction, but it is not ensured, at that moment,
that the filter is already instantiaded.

In order to silence the glib logs, this patch add only calls
gst_vaapi_filter_append_caps() if the filter is instantiated.
gst/vaapi/gstvaapipostproc.c