mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
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.
This commit is contained in:
parent
9fe6b621a2
commit
d671197684
1 changed files with 2 additions and 1 deletions
|
@ -1142,6 +1142,7 @@ ensure_allowed_sinkpad_caps (GstVaapiPostproc * postproc)
|
|||
if (!structure)
|
||||
continue;
|
||||
|
||||
if (postproc->filter)
|
||||
gst_vaapi_filter_append_caps (postproc->filter, structure);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue