[vlc-devel] [PATCH 4/4] mediacodec: add missing vctx hold from pic_ctx_copy
Thomas Guillem
thomas at gllm.fr
Wed Jan 8 16:52:48 CET 2020
---
modules/codec/omxil/mediacodec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/codec/omxil/mediacodec.c b/modules/codec/omxil/mediacodec.c
index c55fd23e6f2..f0cf159cc48 100644
--- a/modules/codec/omxil/mediacodec.c
+++ b/modules/codec/omxil/mediacodec.c
@@ -556,6 +556,7 @@ static struct picture_context_t *PictureContextCopy(struct picture_context_t *ct
container_of(ctx, struct android_picture_ctx, s);
atomic_fetch_add_explicit(&apctx->refs, 1, memory_order_relaxed);
+ vlc_video_context_Hold(ctx->vctx);
return ctx;
}
--
2.20.1
More information about the vlc-devel
mailing list