From c8a2c2fe59551493b945c23d0ce84d1cecfbaec9 Mon Sep 17 00:00:00 2001 From: Mangal Date: Tue, 25 Nov 2025 01:59:36 +0530 Subject: [PATCH] android/display: fix subtitle rendering on rotation --- modules/video_output/android/display.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/video_output/android/display.c b/modules/video_output/android/display.c index a2bad5d372..5c66434eb4 100644 --- a/modules/video_output/android/display.c +++ b/modules/video_output/android/display.c @@ -71,6 +71,7 @@ static void subpicture_SetDisplaySize(vout_display_t *vd, unsigned width, unsign { struct sys *sys = vd->sys; struct subpicture *sub = &sys->sub; + vlc_gl_sub_renderer_SetOutputSize(sub->renderer, width, height); vlc_gl_Resize(sub->gl, width, height); sub->place_changed = true; } @@ -112,6 +113,10 @@ static bool subpicture_NeedDraw(vout_display_t *vd, return true; } + /* If the window/surface size changed, we MUST redraw */ + if (sub->place_changed) + return true; + sub->clear = true; size_t count = subpicture->regions.size;