Skip to content
Snippets Groups Projects
Commit 3930fd84 authored by Thomas Guillem's avatar Thomas Guillem
Browse files

vt_utils: vctx is now mandatory

parent c6a72063
No related branches found
No related tags found
No related merge requests found
Pipeline #12558 passed with stage
in 15 minutes and 8 seconds
......@@ -71,8 +71,7 @@ cvpxpic_copy_cb(struct picture_context_t *opaque)
{
struct cvpxpic_ctx *ctx = (struct cvpxpic_ctx *)opaque;
vlc_atomic_rc_inc(&ctx->rc);
if (opaque->vctx)
vlc_video_context_Hold(opaque->vctx);
vlc_video_context_Hold(opaque->vctx);
return opaque;
}
......@@ -95,8 +94,8 @@ cvpxpic_attach_common(picture_t *p_pic, CVPixelBufferRef cvpx,
ctx->nb_fields = p_pic->i_nb_fields;
vlc_atomic_rc_init(&ctx->rc);
if (vctx)
vlc_video_context_Hold(vctx);
assert(vctx);
vlc_video_context_Hold(vctx);
ctx->on_released_cb = on_released_cb;
p_pic->context = &ctx->s;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment