summaryrefslogtreecommitdiffstats
path: root/video/out/vo_x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo_x11.c')
-rw-r--r--video/out/vo_x11.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/video/out/vo_x11.c b/video/out/vo_x11.c
index ab188bee6f..53a4fb03f7 100644
--- a/video/out/vo_x11.c
+++ b/video/out/vo_x11.c
@@ -483,7 +483,10 @@ static void draw_image(struct vo *vo, mp_image_t *mpi)
osd_draw_on_image(vo->osd, p->osd, mpi ? mpi->pts : 0, 0, &img);
- mp_image_setrefp(&p->original_image, mpi);
+ if (mpi != p->original_image) {
+ talloc_free(p->original_image);
+ p->original_image = mpi;
+ }
}
static int redraw_frame(struct vo *vo)