mirror of https://github.com/mpv-player/mpv
vo_rpi: fix blackscreen before the first subtitle/OSD is rendered
The OSD overlay wasn't initialized, so it remained solid black until the first time a subtitle line or an OSD element became visible.
This commit is contained in:
parent
3bceb37b06
commit
b8fe17f2e6
|
@ -254,6 +254,7 @@ static int update_display_size(struct vo *vo)
|
|||
}
|
||||
p->sc = gl_sc_create(p->egl.gl, vo->log, vo->global),
|
||||
p->osd = mpgl_osd_init(p->egl.gl, vo->log, vo->osd);
|
||||
p->osd_change_counter = -1; // force initial overlay rendering
|
||||
|
||||
p->display_fps = 0;
|
||||
TV_GET_STATE_RESP_T tvstate;
|
||||
|
|
Loading…
Reference in New Issue