From 04062b6f897960938649047c3e2c5ceb08bae295 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Wed, 31 Aug 2022 13:33:05 +0200 Subject: [PATCH] vo_gpu_next: display subtitles without video stream Fixes https://github.com/mpv-player/mpv/issues/10594 --- video/out/vo_gpu_next.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index 8b2d783727..50fc969193 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -900,9 +900,10 @@ static void draw_frame(struct vo *vo, struct vo_frame *frame) // Calculate target struct pl_frame target; + int osd_flags = frame->current ? OSD_DRAW_OSD_ONLY : 0; pl_frame_from_swapchain(&target, &swframe); apply_target_options(p, &target); - update_overlays(vo, p->osd_res, 0, OSD_DRAW_OSD_ONLY, &p->osd_state, &target); + update_overlays(vo, p->osd_res, 0, osd_flags, &p->osd_state, &target); apply_crop(&target, p->dst, swframe.fbo->params.w, swframe.fbo->params.h); struct pl_frame_mix mix = {0};