summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorHe Junyan <junyan.he@intel.com>2021-05-14 12:04:04 +0800
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-08-25 01:47:21 +0000
commit7809c58664519e8af2266fbb1da8dd93e78b5bc3 (patch)
tree91120b2fa0d47d25e317e85585a819be80c5b15d /gst
parentc27c158cb2efe285f6fcf909cb49e8a0ac88c568 (diff)
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/435>
Diffstat (limited to 'gst')
-rw-r--r--gst/vaapi/gstvaapivideocontext.c3
1 files changed, 3 insertions, 0 deletions
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 *