From b8fe17f2e638fc95d09f07889cc94ef8783ed17f Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 20 Aug 2015 10:36:32 +0200 Subject: 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. --- video/out/vo_rpi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/video/out/vo_rpi.c b/video/out/vo_rpi.c index f3dfab3af6..ad4c5033c1 100644 --- a/video/out/vo_rpi.c +++ b/video/out/vo_rpi.c @@ -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; -- cgit v1.2.3