[vlc-commits] vdpau/chroma: fix NULL dereference on error
Rémi Denis-Courmont
git at videolan.org
Sat Jun 14 09:31:18 CEST 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jun 14 10:31:01 2014 +0300| [052600173f376ff58ff04d53746961a2c51db0d5] | committer: Rémi Denis-Courmont
vdpau/chroma: fix NULL dereference on error
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=052600173f376ff58ff04d53746961a2c51db0d5
---
modules/hw/vdpau/chroma.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/hw/vdpau/chroma.c b/modules/hw/vdpau/chroma.c
index 3883272..126cf29 100644
--- a/modules/hw/vdpau/chroma.c
+++ b/modules/hw/vdpau/chroma.c
@@ -626,8 +626,7 @@ static picture_t *VideoRender(filter_t *filter, picture_t *src)
{
msg_Err(filter, "video %s %s failure: %s", "mixer", "rendering",
vdp_get_error_string(sys->vdp, err));
- picture_Release(dst);
- dst = NULL;
+ goto error;
}
if (swap)
More information about the vlc-commits
mailing list