vo_gpu_next: display subtitles without video stream

Fixes https://github.com/mpv-player/mpv/issues/10594
This commit is contained in:
Niklas Haas 2022-08-31 13:33:05 +02:00
parent 0421e81965
commit 04062b6f89
1 changed files with 2 additions and 1 deletions

View File

@ -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};