[vlc-commits] [Git][videolan/vlc][master] android/display: fix subtitle rendering on rotation

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Fri Dec 26 10:06:28 UTC 2025



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
c8a2c2fe by Mangal at 2025-12-26T10:37:14+01:00
android/display: fix subtitle rendering on rotation

- - - - -


1 changed file:

- modules/video_output/android/display.c


Changes:

=====================================
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;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c8a2c2fe59551493b945c23d0ce84d1cecfbaec9

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c8a2c2fe59551493b945c23d0ce84d1cecfbaec9
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list