[vlc-commits] nvdec: code cleaning
Steve Lhomme
git at videolan.org
Tue Nov 19 15:11:54 CET 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Nov 19 14:38:19 2019 +0100| [386e07571ba474dce7e2f18b53c8b6b4e7da08f7] | committer: Steve Lhomme
nvdec: code cleaning
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=386e07571ba474dce7e2f18b53c8b6b4e7da08f7
---
modules/hw/nvdec/nvdec.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/hw/nvdec/nvdec.c b/modules/hw/nvdec/nvdec.c
index 4feae96133..bcfbe43f92 100644
--- a/modules/hw/nvdec/nvdec.c
+++ b/modules/hw/nvdec/nvdec.c
@@ -375,8 +375,9 @@ static int CUDAAPI HandlePictureDisplay(void *p_opaque, CUVIDPARSERDISPINFO *p_d
pic_context_nvdec_t *picctx = malloc(sizeof(*picctx));
if (unlikely(picctx == NULL))
goto error;
- picctx->ctx.destroy = NVDecCtxDestroy;
- picctx->ctx.copy = NVDecCtxClone;
+ picctx->ctx = (picture_context_t) {
+ NVDecCtxDestroy, NVDecCtxClone,
+ };
uintptr_t pool_idx = (uintptr_t)p_pic->p_sys;
picctx->devidePtr = p_sys->outputDevicePtr[pool_idx];
picctx->bufferPitch = p_sys->outputPitch;
More information about the vlc-commits
mailing list