diff options
author | Philip Langdale <philipl@overt.org> | 2022-03-12 10:54:23 -0800 |
---|---|---|
committer | Philip Langdale <github.philipl@overt.org> | 2023-05-28 15:46:05 -0700 |
commit | 085f3e31a091daf7d6649508b162cfcde826702a (patch) | |
tree | 50eb9dc75c2c9071cad2b0e77baba4e97f1cb911 /video/out/gpu/libmpv_gpu.c | |
parent | 959ef843d2752e802874b265b21ee6542388a019 (diff) | |
download | mpv-085f3e31a091daf7d6649508b162cfcde826702a.tar.bz2 mpv-085f3e31a091daf7d6649508b162cfcde826702a.tar.xz |
vo: hwdec: Pass the ra_ctx to hwdecs instead of just the ra
We will need the full ra_ctx to be able to look up all the state
required to initialise an ffmpeg vulkan hwcontext, so pass let's
pass the ra_ctx instead of just the ra.
Diffstat (limited to 'video/out/gpu/libmpv_gpu.c')
-rw-r--r-- | video/out/gpu/libmpv_gpu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/gpu/libmpv_gpu.c b/video/out/gpu/libmpv_gpu.c index 8cf3082380..aae1d18eed 100644 --- a/video/out/gpu/libmpv_gpu.c +++ b/video/out/gpu/libmpv_gpu.c @@ -81,14 +81,14 @@ static int init(struct render_backend *ctx, mpv_render_param *params) void *data = params[n].data; if (entry->size) data = talloc_memdup(p, data, entry->size); - ra_add_native_resource(p->context->ra, entry->name, data); + ra_add_native_resource(p->context->ra_ctx->ra, entry->name, data); } } - p->renderer = gl_video_init(p->context->ra, ctx->log, ctx->global); + p->renderer = gl_video_init(p->context->ra_ctx->ra, ctx->log, ctx->global); ctx->hwdec_devs = hwdec_devices_create(); - gl_video_init_hwdecs(p->renderer, ctx->hwdec_devs, true); + gl_video_init_hwdecs(p->renderer, p->context->ra_ctx, ctx->hwdec_devs, true); ctx->driver_caps = VO_CAP_ROTATE90; return 0; } |