+#if USE_DRM
+ case GST_VAAPI_DISPLAY_TYPE_DRM: {
+ GstVaapiDisplayDRM * const drm_dpy =
+ GST_VAAPI_DISPLAY_DRM(display);
+ if (!strcmp(type, "drm-device-path"))
+ gst_video_context_query_set_string(query, type,
+ gst_vaapi_display_drm_get_device_path(drm_dpy));
+#if 0
+ /* XXX: gst_video_context_query_set_int() does not exist yet */
+ else if (!strcmp(type, "drm-device"))
+ gst_video_context_query_set_int(query, type,
+ gst_vaapi_display_drm_get_device(drm_dpy));
+#endif
+ else
+ res = FALSE;
+ break;
+ }
+#endif