[vlc-commits] gl: vdpau: fix crash using invalid vdp_t pointer
Thomas Guillem
git at videolan.org
Thu Feb 28 11:43:59 CET 2019
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Feb 28 11:42:05 2019 +0100| [ac43006df0892ab6b52221810003f36424140d15] | committer: Thomas Guillem
gl: vdpau: fix crash using invalid vdp_t pointer
Regression from 3c9b5fe7db8af75b01d1011278d2584fc56b7dff
Fixes #21974
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ac43006df0892ab6b52221810003f36424140d15
---
modules/video_output/opengl/converter_vdpau.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/video_output/opengl/converter_vdpau.c b/modules/video_output/opengl/converter_vdpau.c
index 077ba2600b..c15b65afe5 100644
--- a/modules/video_output/opengl/converter_vdpau.c
+++ b/modules/video_output/opengl/converter_vdpau.c
@@ -62,7 +62,8 @@ static picture_pool_t *
tc_vdpau_gl_get_pool(opengl_tex_converter_t const *tc,
unsigned int requested_count)
{
- return vlc_vdp_output_pool_create(tc->priv, VDP_RGBA_FORMAT_B8G8R8A8,
+ return vlc_vdp_output_pool_create(tc->dec_device->opaque,
+ VDP_RGBA_FORMAT_B8G8R8A8,
&tc->fmt, requested_count);
}
More information about the vlc-commits
mailing list