Skip to content
Snippets Groups Projects
Commit af0b9612 authored by Alexandre Janniaux's avatar Alexandre Janniaux Committed by Hugo Beauzée-Luyssen
Browse files

mediacodec: fix video context initialization

avctx->texture is checked from the display to determine on whether the
pictures are available to the display or represent an OpenGL-compatible
video context.

Fix #26400
parent 39fdcf2b
No related branches found
No related tags found
Loading
Pipeline #179925 passed with stage
in 13 minutes and 1 second
......@@ -708,6 +708,7 @@ CreateVideoContext(decoder_t *p_dec)
avctx->render = PictureContextRenderPic;
avctx->render_ts = p_sys->api.release_out_ts ? PictureContextRenderPicTs : NULL;
avctx->get_texture = p_sys->video.surfacetexture ? PictureContextGetTexture : NULL;
avctx->texture = NULL;
for (size_t i = 0; i < ARRAY_SIZE(p_sys->video.apic_ctxs); ++i)
{
......
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