diff options
-rw-r--r-- | video/out/vo_rpi.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/video/out/vo_rpi.c b/video/out/vo_rpi.c index 47100285ec..0d89cfa4d3 100644 --- a/video/out/vo_rpi.c +++ b/video/out/vo_rpi.c @@ -804,6 +804,10 @@ static void destroy_dispmanx(struct vo *vo) disable_renderer(vo); destroy_overlays(vo); + if (p->update) + vc_dispmanx_update_submit_sync(p->update); + p->update = 0; + if (p->display) { vc_dispmanx_vsync_callback(p->display, NULL, NULL); vc_dispmanx_display_close(p->display); @@ -856,9 +860,6 @@ static void uninit(struct vo *vo) destroy_dispmanx(vo); - if (p->update) - vc_dispmanx_update_submit_sync(p->update); - if (p->renderer) mmal_component_release(p->renderer); |