diff --git a/AUTHORS b/AUTHORS index c4eb80b1f1..89f889bdf8 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1039,6 +1039,9 @@ siTe Sudrien * softgrip +Sulmicki, Adam + * profiling and menu fixes + Szumiela, Marcin * divxplayer 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); }