[Libva] [PATCH] Add assert checking for allocated gen9_vp9_surface

Xiang, Haihao haihao.xiang at intel.com
Sun Dec 13 09:23:53 PST 2015


Thanks for the patch, applied.

Haihao

>-----Original Message-----
>From: Libva [mailto:libva-bounces at lists.freedesktop.org] On Behalf Of Lim
>Siew Hoon
>Sent: Thursday, December 10, 2015 4:08 PM
>To: libva at lists.freedesktop.org
>Subject: [Libva] [PATCH] Add assert checking for allocated gen9_vp9_surface
>
>Signed-off-by: Lim Siew Hoon <siew.hoon.lim at intel.com>
>---
> src/gen9_mfd.c | 1 +
> 1 file changed, 1 insertion(+)
>
>diff --git a/src/gen9_mfd.c b/src/gen9_mfd.c index d9ca3be..2d8ed7d 100644
>--- a/src/gen9_mfd.c
>+++ b/src/gen9_mfd.c
>@@ -1277,6 +1277,7 @@ gen9_hcpd_init_vp9_surface(VADriverContextP ctx,
>
>     if (!gen9_vp9_surface) {
>         gen9_vp9_surface = calloc(sizeof(GenVP9Surface), 1);
>+        assert(gen9_vp9_surface);
>         gen9_vp9_surface->base.frame_store_id = -1;
>         obj_surface->private_data = gen9_vp9_surface;
>     }
>--
>2.1.0
>
>_______________________________________________
>Libva mailing list
>Libva at lists.freedesktop.org
>http://lists.freedesktop.org/mailman/listinfo/libva


More information about the Libva mailing list