summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2022-08-31 13:33:05 +0200
committerNiklas Haas <git@haasn.dev>2022-08-31 13:33:05 +0200
commit04062b6f897960938649047c3e2c5ceb08bae295 (patch)
tree7594daa01edbc6cd57f198746fd15d5afae1071c
parent0421e81965ba38e46044e5dcdee68cb58a19bc79 (diff)
downloadmpv-04062b6f897960938649047c3e2c5ceb08bae295.tar.bz2
mpv-04062b6f897960938649047c3e2c5ceb08bae295.tar.xz
vo_gpu_next: display subtitles without video stream
Fixes https://github.com/mpv-player/mpv/issues/10594
-rw-r--r--video/out/vo_gpu_next.c3
1 files changed, 2 insertions, 1 deletions
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};