Commit 05260017 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vdpau/chroma: fix NULL dereference on error

parent 8bb10a1b
...@@ -626,8 +626,7 @@ static picture_t *VideoRender(filter_t *filter, picture_t *src) ...@@ -626,8 +626,7 @@ static picture_t *VideoRender(filter_t *filter, picture_t *src)
{ {
msg_Err(filter, "video %s %s failure: %s", "mixer", "rendering", msg_Err(filter, "video %s %s failure: %s", "mixer", "rendering",
vdp_get_error_string(sys->vdp, err)); vdp_get_error_string(sys->vdp, err));
picture_Release(dst); goto error;
dst = NULL;
} }
if (swap) if (swap)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment