vdpau/chroma: fix NULL dereference on error
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 14 Jun 2014 07:31:01 +0000 (10:31 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 14 Jun 2014 07:31:01 +0000 (10:31 +0300)
modules/hw/vdpau/chroma.c

index 3883272..126cf29 100644 (file)
@@ -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)