From c05ce4481540cb74ca6e126f5d16a24d3fcb4732 Mon Sep 17 00:00:00 2001 From: He Junyan Date: Sun, 29 Dec 2019 01:13:29 +0800 Subject: [PATCH] libs: pixmap: Fix a pixmap creation crash. We use GST_VAAPI_OBJECT_NATIVE_DISPLAY with wrong parameter for x11 pixmap creation, which causes crash if we run the internal test case of: test-decode --pixmap --- gst-libs/gst/vaapi/gstvaapipixmap_x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/vaapi/gstvaapipixmap_x11.c b/gst-libs/gst/vaapi/gstvaapipixmap_x11.c index 7bdbf5e..43a1710 100644 --- a/gst-libs/gst/vaapi/gstvaapipixmap_x11.c +++ b/gst-libs/gst/vaapi/gstvaapipixmap_x11.c @@ -79,7 +79,7 @@ gst_vaapi_pixmap_x11_create (GstVaapiPixmap * pixmap) { GstVaapiDisplayX11 *const display = GST_VAAPI_DISPLAY_X11 (GST_VAAPI_OBJECT_DISPLAY (pixmap)); - Display *const dpy = GST_VAAPI_OBJECT_NATIVE_DISPLAY (display); + Display *const dpy = GST_VAAPI_DISPLAY_NATIVE (display); Window rootwin; Pixmap xid; guint depth; -- 2.7.4