summaryrefslogtreecommitdiffstats
path: root/video/out/gl_video.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/gl_video.c')
-rw-r--r--video/out/gl_video.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c
index 07b3b9ebb6..7b6976685f 100644
--- a/video/out/gl_video.c
+++ b/video/out/gl_video.c
@@ -1976,6 +1976,13 @@ static bool get_image(struct gl_video *p, struct mp_image *mpi)
return true;
}
+void gl_video_skip_image(struct gl_video *p, struct mp_image *mpi)
+{
+ struct video_image *vimg = &p->image;
+ talloc_free(vimg->mpi);
+ vimg->mpi = mpi;
+}
+
void gl_video_upload_image(struct gl_video *p, struct mp_image *mpi)
{
GL *gl = p->gl;