diff options
author | nanahi <130121847+na-na-hi@users.noreply.github.com> | 2024-03-24 14:20:58 -0400 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2024-03-27 22:08:56 +0100 |
commit | f4a7931c534158d254a4a36f289494c1de6a16b9 (patch) | |
tree | d2fa5a5821e7511837f8e31db7db94a27802fd73 /video/out/vo_gpu.c | |
parent | 3f17b18a33f57043b97c590c3fc8ea5385adbd0f (diff) | |
download | mpv-f4a7931c534158d254a4a36f289494c1de6a16b9.tar.bz2 mpv-f4a7931c534158d254a4a36f289494c1de6a16b9.tar.xz |
vo_gpu: support video-target-params
Diffstat (limited to 'video/out/vo_gpu.c')
-rw-r--r-- | video/out/vo_gpu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/vo_gpu.c b/video/out/vo_gpu.c index 0d9b488abf..d49a6ba8a2 100644 --- a/video/out/vo_gpu.c +++ b/video/out/vo_gpu.c @@ -85,6 +85,11 @@ static void draw_frame(struct vo *vo, struct vo_frame *frame) MP_ERR(vo, "Failed presenting frame!\n"); return; } + + struct mp_image_params *params = gl_video_get_target_params_ptr(p->renderer); + mp_mutex_lock(&vo->params_mutex); + vo->target_params = params; + mp_mutex_unlock(&vo->params_mutex); } static void flip_page(struct vo *vo) |