Skip to content
Snippets Groups Projects
Commit d42029d2 authored by Julien Isorce's avatar Julien Isorce Committed by Christian König
Browse files

st/va: do not destroy old buffer when new one failed


If formats are not the same vlVaPutImage re-creates the video
buffer with the right format. But if the creation of this new
video buffer fails then the surface looses its current buffer.
Let's just destroy the previous buffer on success.

Signed-off-by: default avatarJulien Isorce <j.isorce@samsung.com>
Reviewed-by: default avatarEmil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
parent 87109e5f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment