From 90cd5aa8c8950406b335dfb34c01b0fdae833da9 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 17 Jun 2014 23:05:50 +0200 Subject: vo: make draw_image and vo_queue_image transfer image ownership Basically a cosmetic change. This is probably more intuitive. --- video/out/vo_image.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'video/out/vo_image.c') diff --git a/video/out/vo_image.c b/video/out/vo_image.c index db4337b97e..bec5ea9fd0 100644 --- a/video/out/vo_image.c +++ b/video/out/vo_image.c @@ -76,9 +76,7 @@ static void draw_image(struct vo *vo, mp_image_t *mpi) { struct priv *p = vo->priv; - mp_image_setrefp(&p->current, mpi); - if (!p->current) - return; + p->current = mpi; struct mp_osd_res dim = osd_res_from_image_params(vo->params); osd_draw_on_image(vo->osd, dim, mpi->pts, OSD_DRAW_SUB_ONLY, p->current); -- cgit v1.2.3