vaapipluginutil: Use GST_VAAPI_DISPLAY_TYPE_DRM for Mesa3D GBM
authorHaihao Xiang <haihao.xiang@intel.com>
Sun, 26 Apr 2020 05:30:16 +0000 (13:30 +0800)
committerHaihao Xiang <haihao.xiang@intel.com>
Sun, 26 Apr 2020 06:55:30 +0000 (14:55 +0800)
commit336c2b76d1748b6ecab2922d4f387314529881a1
treed5959fae870a313298776430277f6c9f1d23e386
parent8b7a5a36f1b2769dd6c8cbddb375b8dadf2b9057
vaapipluginutil: Use GST_VAAPI_DISPLAY_TYPE_DRM for Mesa3D GBM

We may build this plugin with window system support but run it without
window system. Without this patch, the following pipeline will trigger a
segfault when running it without window system.

gst-launch-1.0 filesrc location=input.264 ! h264parse ! vaapih264dec ! fakesink

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/319>
gst/vaapi/gstvaapipluginutil.c