[vlc-devel] [PATCH 09/18] vaapi: set the video context in the picture context
Steve Lhomme
robux4 at ycbcr.xyz
Fri Nov 15 15:51:11 CET 2019
---
modules/codec/avcodec/vaapi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/avcodec/vaapi.c b/modules/codec/avcodec/vaapi.c
index 110a6492d2d..777f1a67200 100644
--- a/modules/codec/avcodec/vaapi.c
+++ b/modules/codec/avcodec/vaapi.c
@@ -163,7 +163,7 @@ static int Get(vlc_va_t *va, picture_t *pic, uint8_t **data)
}
vaapi_ctx->ctx.s = (picture_context_t) {
vaapi_dec_pic_context_destroy, vaapi_dec_pic_context_copy,
- NULL /*TODO*/
+ vlc_video_context_Hold(sys->vctx),
};
vaapi_ctx->ctx.surface = sys->render_targets[va_surface_GetIndex(va_surface)];
vaapi_ctx->ctx.va_dpy = sys->hw_ctx.display;
--
2.17.1
More information about the vlc-devel
mailing list