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
This commit is contained in:
He Junyan 2019-12-29 01:13:29 +08:00
parent 3355cd4691
commit c05ce44815

View file

@ -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;