mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
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:
parent
3355cd4691
commit
c05ce44815
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ gst_vaapi_pixmap_x11_create (GstVaapiPixmap * pixmap)
|
||||||
{
|
{
|
||||||
GstVaapiDisplayX11 *const display =
|
GstVaapiDisplayX11 *const display =
|
||||||
GST_VAAPI_DISPLAY_X11 (GST_VAAPI_OBJECT_DISPLAY (pixmap));
|
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;
|
Window rootwin;
|
||||||
Pixmap xid;
|
Pixmap xid;
|
||||||
guint depth;
|
guint depth;
|
||||||
|
|
Loading…
Reference in a new issue