vlc | branch: master | Steve Lhomme <[email protected]> | Thu Nov 21 14:37:56 2019 +0100| [172a802f6f10620c27105a45d230993aa40bbdd5] | committer: Steve Lhomme
vlc_vaapi: avoid dirty cast > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=172a802f6f10620c27105a45d230993aa40bbdd5 --- modules/hw/vaapi/vlc_vaapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hw/vaapi/vlc_vaapi.c b/modules/hw/vaapi/vlc_vaapi.c index cf5c8baf40..4c4a30d9b3 100644 --- a/modules/hw/vaapi/vlc_vaapi.c +++ b/modules/hw/vaapi/vlc_vaapi.c @@ -449,7 +449,7 @@ pic_ctx_destroy_cb(struct picture_context_t *opaque) static struct picture_context_t * pic_ctx_copy_cb(struct picture_context_t *opaque) { - struct vaapi_pic_ctx *src_ctx = (struct vaapi_pic_ctx *) opaque; + struct vaapi_pic_ctx *src_ctx = container_of(opaque, struct vaapi_pic_ctx, ctx.s); struct vaapi_pic_ctx *dst_ctx = malloc(sizeof *dst_ctx); if (dst_ctx == NULL) return NULL; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
