From 7809c58664519e8af2266fbb1da8dd93e78b5bc3 Mon Sep 17 00:00:00 2001 From: He Junyan Date: Fri, 14 May 2021 12:04:04 +0800 Subject: Display: Add a property to export the VA display handle. Just like what we do in VA plugins. The display can be seen as a generic gst object and we can add a property to get the internal VA handle. Part-of: --- gst/vaapi/gstvaapivideocontext.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gst/vaapi') diff --git a/gst/vaapi/gstvaapivideocontext.c b/gst/vaapi/gstvaapivideocontext.c index ae3af85d..cc2967b8 100644 --- a/gst/vaapi/gstvaapivideocontext.c +++ b/gst/vaapi/gstvaapivideocontext.c @@ -64,6 +64,9 @@ gst_vaapi_video_context_set_display (GstContext * context, structure = gst_context_writable_structure (context); gst_structure_set (structure, GST_VAAPI_DISPLAY_CONTEXT_TYPE_NAME, GST_TYPE_VAAPI_DISPLAY, display, NULL); + /* The outside user may access it as a generic Gobject. */ + gst_structure_set (structure, "gst.vaapi.Display.GObject", + GST_TYPE_OBJECT, display, NULL); } GstContext * -- cgit v1.2.3