summaryrefslogtreecommitdiffstats
path: root/libmenu
diff options
context:
space:
mode:
Diffstat (limited to 'libmenu')
-rw-r--r--libmenu/vf_menu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libmenu/vf_menu.c b/libmenu/vf_menu.c
index e18420ece0..6a2d2ef35c 100644
--- a/libmenu/vf_menu.c
+++ b/libmenu/vf_menu.c
@@ -233,6 +233,10 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){
} else {
if(mp_input_key_cb)
mp_input_key_cb = NULL;
+
+ if(mpi->flags&MP_IMGFLAG_DIRECT)
+ dmpi = mpi->priv;
+ else {
dmpi = vf_get_image(vf->next,mpi->imgfmt,
MP_IMGTYPE_EXPORT, MP_IMGFLAG_ACCEPT_STRIDE,
mpi->w,mpi->h);
@@ -245,6 +249,7 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){
dmpi->planes[2] = mpi->planes[2];
dmpi->priv = mpi->priv;
}
+ }
return vf_next_put_image(vf,dmpi, pts);
}