[vlc-commits] mediacodec: add missing vctx hold from pic_ctx_copy
Thomas Guillem
git at videolan.org
Thu Jan 9 13:17:56 CET 2020
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Jan 8 15:14:18 2020 +0100| [be8b26cb06a37410dad9ad4aa2cda41579ac86ee] | committer: Thomas Guillem
mediacodec: add missing vctx hold from pic_ctx_copy
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=be8b26cb06a37410dad9ad4aa2cda41579ac86ee
---
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 c55fd23e6f..f0cf159cc4 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;
}
More information about the vlc-commits
mailing list