mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
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>
This commit is contained in:
parent
8b7a5a36f1
commit
336c2b76d1
1 changed files with 5 additions and 0 deletions
|
@ -156,6 +156,11 @@ gst_vaapi_get_display_type_from_gl (GstGLDisplayType gl_display_type,
|
|||
case GST_GL_DISPLAY_TYPE_EGL:{
|
||||
return GST_VAAPI_DISPLAY_TYPE_EGL;
|
||||
}
|
||||
#endif
|
||||
#if USE_DRM
|
||||
case GST_GL_DISPLAY_TYPE_GBM:{
|
||||
return GST_VAAPI_DISPLAY_TYPE_DRM;
|
||||
}
|
||||
#endif
|
||||
default:
|
||||
/* unsupported display. Still DRM may work. */
|
||||
|
|
Loading…
Reference in a new issue