summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-08-20 10:36:32 +0200
committerwm4 <wm4@nowhere>2015-08-20 10:36:32 +0200
commitb8fe17f2e638fc95d09f07889cc94ef8783ed17f (patch)
tree5cba35357f3d1b8c02ab21c37687fefafc289a38
parent3bceb37b0618bc5b1a95272dfca01c808d8909ed (diff)
downloadmpv-b8fe17f2e638fc95d09f07889cc94ef8783ed17f.tar.bz2
mpv-b8fe17f2e638fc95d09f07889cc94ef8783ed17f.tar.xz
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.
-rw-r--r--video/out/vo_rpi.c1
1 files changed, 1 insertions, 0 deletions
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;