mirror of https://github.com/mpv-player/mpv
speeds up mplayer execution by over FIVE times when all of the of the following apply:
* menus are enabled * menus are enabled but not displayed * direct rendering is in use Patch by Adam Sulmicki % adam A cfar P umd P edu % Original thread: date: Jan 7, 2007 11:07 PM subject: [MPlayer-dev-eng] [PATCH] slow menus : try two Other threads: date: Jan 7, 2007 12:39 PM subject: [MPlayer-advusers] [patch] slow menus Also: date: Jan 6, 2007 11:13 PM subject: [MPlayer-advusers] [patch] slow menus And: date: Jan 2, 2007 11:46 PM subject: [MPlayer-advusers] slow down with menu off Finaly: date: Dec 24, 2006 11:25 AM subject: [MPlayer-users] slow down with menu off git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21942 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f8aa043601
commit
7c450c5275
3
AUTHORS
3
AUTHORS
|
@ -1039,6 +1039,9 @@ siTe <ties@waterplant.nl>
|
||||||
Sudrien
|
Sudrien
|
||||||
* softgrip
|
* softgrip
|
||||||
|
|
||||||
|
Sulmicki, Adam <adam@cfar.umd.edu>
|
||||||
|
* profiling and menu fixes
|
||||||
|
|
||||||
Szumiela, Marcin <marcin@szumiela.pl>
|
Szumiela, Marcin <marcin@szumiela.pl>
|
||||||
* divxplayer
|
* divxplayer
|
||||||
|
|
||||||
|
|
|
@ -233,6 +233,10 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){
|
||||||
} else {
|
} else {
|
||||||
if(mp_input_key_cb)
|
if(mp_input_key_cb)
|
||||||
mp_input_key_cb = NULL;
|
mp_input_key_cb = NULL;
|
||||||
|
|
||||||
|
if(mpi->flags&MP_IMGFLAG_DIRECT)
|
||||||
|
dmpi = mpi->priv;
|
||||||
|
else {
|
||||||
dmpi = vf_get_image(vf->next,mpi->imgfmt,
|
dmpi = vf_get_image(vf->next,mpi->imgfmt,
|
||||||
MP_IMGTYPE_EXPORT, MP_IMGFLAG_ACCEPT_STRIDE,
|
MP_IMGTYPE_EXPORT, MP_IMGFLAG_ACCEPT_STRIDE,
|
||||||
mpi->w,mpi->h);
|
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->planes[2] = mpi->planes[2];
|
||||||
dmpi->priv = mpi->priv;
|
dmpi->priv = mpi->priv;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return vf_next_put_image(vf,dmpi, pts);
|
return vf_next_put_image(vf,dmpi, pts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue