summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
Diffstat (limited to 'video')
-rw-r--r--video/out/opengl/video.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c
index 3189ec1ff3..2cce989bdd 100644
--- a/video/out/opengl/video.c
+++ b/video/out/opengl/video.c
@@ -840,8 +840,11 @@ static void unmap_current_image(struct gl_video *p)
p->hwdec->driver->unmap(p->hwdec);
memset(vimg->planes, 0, sizeof(vimg->planes));
vimg->hwdec_mapped = false;
- vimg->id = 0; // needs to be mapped again
+ vimg->id = 0; // needs to be mapped again
}
+
+ if (p->hwdec_active && p->hwdec->driver->overlay_frame)
+ p->hwdec->driver->overlay_frame(p->hwdec, NULL);
}
static void unref_current_image(struct gl_video *p)