diff options
author | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2020-02-16 17:19:04 +0100 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2020-02-21 15:11:31 +0000 |
commit | 57e792136c0036e39bcf69011324cf05642b6641 (patch) | |
tree | fb0bf9590b16b99f5b5141f4d6daba9c0c9a08d3 /gst | |
parent | 13c3b8ba5bdb8cad9857447b83741c7a8aa86a93 (diff) |
libs: blend: filter: handle finalize() if display isn't assigned
I've just discovered iHD driver in Skylake doesn't have VideoProc
entry point, hence, in this platform, when vaapioverlay is tried to be
registered, critical warnings are raised because blend doesn't have a
display assigned.
As it is possible to have drivers without EntryPointVideoProc it is
required to handle it gracefully. This patch does that: only tries to
register vaapioverlay if the testing display has VPP and finalize()
vmethods, in filter and blend, bail out if display is NULL.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/vaapi/gstvaapi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/vaapi/gstvaapi.c b/gst/vaapi/gstvaapi.c index 1c4efff5..324e4bad 100644 --- a/gst/vaapi/gstvaapi.c +++ b/gst/vaapi/gstvaapi.c @@ -202,7 +202,8 @@ plugin_init (GstPlugin * plugin) g_array_unref (decoders); } - gst_vaapioverlay_register (plugin, display); + if (_gst_vaapi_has_video_processing) + gst_vaapioverlay_register (plugin, display); gst_element_register (plugin, "vaapipostproc", GST_RANK_PRIMARY, GST_TYPE_VAAPIPOSTPROC); |