summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHe Junyan <junyan.he@hotmail.com>2019-12-29 01:13:29 +0800
committerHe Junyan <junyan.he@hotmail.com>2019-12-29 02:00:51 +0800
commitc05ce4481540cb74ca6e126f5d16a24d3fcb4732 (patch)
tree8b18bc9b7ab8fd03c97dd56d6a3e35af418cf99e
parent3355cd46917bc092f5f237b8154749cfff5c68b6 (diff)
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
-rw-r--r--gst-libs/gst/vaapi/gstvaapipixmap_x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapipixmap_x11.c b/gst-libs/gst/vaapi/gstvaapipixmap_x11.c
index 7bdbf5ec..43a1710d 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;