mirror of https://github.com/mpv-player/mpv
vo_gpu_next: display subtitles without video stream
Fixes https://github.com/mpv-player/mpv/issues/10594
This commit is contained in:
parent
0421e81965
commit
04062b6f89
|
@ -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};
|
||||
|
|
Loading…
Reference in New Issue