gstreamer/subprojects/gstreamer-vaapi/gst-libs/gst/vaapi
Víctor Manuel Jáquez Leal 2fc4e928d6 vaapi: libs: video-format: Check if formats map is not NULL.
Formats map is instantiated at the end of the display
instantiation. The problem is the Wayland display which looks for a
format in a callback, before the map is populated.

If user compiles gstreamer-vaapi with DRM support, the map is
populated with a DRM display at GStreamer plugin registration. But if
not, or a VA driver is not available, the plugin will try with a
Wayland driver, which cause the NULL de-reference.

Nevertheless, in the case of no DRM support, and if the Wayland
display doesn't get a reply from the format conversion is not a
problem.

So the solution is the trivial one, check if the format map is already
populated before de-reference it.

Fixes: #977
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1606>
2022-01-31 13:33:31 +00:00
..
egl_compat.h
egl_vtable.h
gstvaapiblend.c
gstvaapiblend.h
gstvaapibufferproxy.c
gstvaapibufferproxy.h
gstvaapibufferproxy_priv.h
gstvaapicodec_objects.c
gstvaapicodec_objects.h
gstvaapicodedbuffer.c
gstvaapicodedbuffer.h
gstvaapicodedbuffer_priv.h
gstvaapicodedbufferpool.c
gstvaapicodedbufferpool.h
gstvaapicodedbufferproxy.c
gstvaapicodedbufferproxy.h
gstvaapicodedbufferproxy_priv.h
gstvaapicompat.h
gstvaapicontext.c
gstvaapicontext.h
gstvaapidebug.h
gstvaapidecoder.c
gstvaapidecoder.h
gstvaapidecoder_av1.c
gstvaapidecoder_av1.h
gstvaapidecoder_dpb.c
gstvaapidecoder_dpb.h
gstvaapidecoder_h264.c vaapi: libs: Use unsized arrays as parameters. 2021-11-18 07:32:26 +00:00
gstvaapidecoder_h264.h
gstvaapidecoder_h265.c vaapi: libs: Use unsized arrays as parameters. 2021-11-18 07:32:26 +00:00
gstvaapidecoder_h265.h
gstvaapidecoder_jpeg.c
gstvaapidecoder_jpeg.h
gstvaapidecoder_mpeg2.c
gstvaapidecoder_mpeg2.h
gstvaapidecoder_mpeg4.c
gstvaapidecoder_mpeg4.h
gstvaapidecoder_objects.c
gstvaapidecoder_objects.h
gstvaapidecoder_priv.h
gstvaapidecoder_unit.c
gstvaapidecoder_unit.h
gstvaapidecoder_vc1.c
gstvaapidecoder_vc1.h
gstvaapidecoder_vp8.c
gstvaapidecoder_vp8.h
gstvaapidecoder_vp9.c
gstvaapidecoder_vp9.h
gstvaapidisplay.c
gstvaapidisplay.h
gstvaapidisplay_drm.c
gstvaapidisplay_drm.h
gstvaapidisplay_drm_priv.h
gstvaapidisplay_egl.c
gstvaapidisplay_egl.h
gstvaapidisplay_egl_priv.h
gstvaapidisplay_glx.c
gstvaapidisplay_glx.h
gstvaapidisplay_glx_priv.h
gstvaapidisplay_priv.h
gstvaapidisplay_wayland.c
gstvaapidisplay_wayland.h
gstvaapidisplay_wayland_priv.h
gstvaapidisplay_x11.c
gstvaapidisplay_x11.h
gstvaapidisplay_x11_priv.h
gstvaapiencoder.c
gstvaapiencoder.h
gstvaapiencoder_h264.c
gstvaapiencoder_h264.h
gstvaapiencoder_h265.c
gstvaapiencoder_h265.h
gstvaapiencoder_jpeg.c
gstvaapiencoder_jpeg.h
gstvaapiencoder_mpeg2.c
gstvaapiencoder_mpeg2.h
gstvaapiencoder_mpeg2_priv.h
gstvaapiencoder_objects.c
gstvaapiencoder_objects.h
gstvaapiencoder_priv.h
gstvaapiencoder_vp8.c
gstvaapiencoder_vp8.h
gstvaapiencoder_vp9.c
gstvaapiencoder_vp9.h
gstvaapifilter.c
gstvaapifilter.h
gstvaapiimage.c
gstvaapiimage.h
gstvaapiimage_priv.h
gstvaapiimagepool.c
gstvaapiimagepool.h
gstvaapiminiobject.c
gstvaapiminiobject.h
gstvaapiparser_frame.c
gstvaapiparser_frame.h
gstvaapiprofile.c vaapi: av1dec: Use named profiles to replace the numeric ones. 2022-01-05 09:20:02 +00:00
gstvaapiprofile.h
gstvaapiprofilecaps.c
gstvaapiprofilecaps.h
gstvaapisubpicture.c
gstvaapisubpicture.h
gstvaapisurface.c
gstvaapisurface.h
gstvaapisurface_drm.c
gstvaapisurface_drm.h
gstvaapisurface_egl.c
gstvaapisurface_egl.h
gstvaapisurface_priv.h
gstvaapisurfacepool.c
gstvaapisurfacepool.h
gstvaapisurfaceproxy.c
gstvaapisurfaceproxy.h
gstvaapisurfaceproxy_priv.h
gstvaapitexture.c
gstvaapitexture.h
gstvaapitexture_egl.c
gstvaapitexture_egl.h
gstvaapitexture_glx.c
gstvaapitexture_glx.h
gstvaapitexture_priv.h
gstvaapitexturemap.c
gstvaapitexturemap.h
gstvaapitypes.h
gstvaapiutils.c
gstvaapiutils.h
gstvaapiutils_core.c
gstvaapiutils_core.h
gstvaapiutils_egl.c
gstvaapiutils_egl.h
gstvaapiutils_glx.c
gstvaapiutils_glx.h
gstvaapiutils_h26x.c
gstvaapiutils_h26x_priv.h
gstvaapiutils_h264.c
gstvaapiutils_h264.h
gstvaapiutils_h264_priv.h
gstvaapiutils_h265.c
gstvaapiutils_h265.h
gstvaapiutils_h265_priv.h
gstvaapiutils_mpeg2.c
gstvaapiutils_mpeg2.h
gstvaapiutils_mpeg2_priv.h
gstvaapiutils_vpx.c
gstvaapiutils_vpx.h
gstvaapiutils_x11.c
gstvaapiutils_x11.h
gstvaapivalue.c
gstvaapivalue.h
gstvaapivideopool.c
gstvaapivideopool.h
gstvaapivideopool_priv.h
gstvaapiwindow.c
gstvaapiwindow.h
gstvaapiwindow_drm.c
gstvaapiwindow_drm.h
gstvaapiwindow_egl.c
gstvaapiwindow_egl.h
gstvaapiwindow_glx.c
gstvaapiwindow_glx.h
gstvaapiwindow_priv.h
gstvaapiwindow_wayland.c
gstvaapiwindow_wayland.h
gstvaapiwindow_x11.c
gstvaapiwindow_x11.h
gstvaapiwindow_x11_priv.h
gstvaapiworkarounds.h
meson.build
ogl_compat.h
sysdeps.h
video-format.c vaapi: libs: video-format: Check if formats map is not NULL. 2022-01-31 13:33:31 +00:00
video-format.h