Browse Source

android/display: fix subtitle rendering on rotation

pull/194/head
Mangal 4 months ago
committed by Jean-Baptiste Kempf
parent
commit
c8a2c2fe59
  1. 5
      modules/video_output/android/display.c

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

Loading…
Cancel
Save