mirror of https://github.com/mpv-player/mpv
this isn't mplayerxp...3 buffers are enough for double(triple)buffering (instead of 28 buffers ;)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8460 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f10afcba44
commit
2e0f15e0c8
|
@ -491,7 +491,9 @@ int vidix_init(unsigned src_width,unsigned src_height,
|
||||||
vidix_play.dest.y = y_org;
|
vidix_play.dest.y = y_org;
|
||||||
vidix_play.dest.w = dst_width;
|
vidix_play.dest.w = dst_width;
|
||||||
vidix_play.dest.h = dst_height;
|
vidix_play.dest.h = dst_height;
|
||||||
vidix_play.num_frames=vo_doublebuffering?NUM_FRAMES-1:1;
|
// vidix_play.num_frames=vo_doublebuffering?NUM_FRAMES-1:1;
|
||||||
|
/* we aren't mad...3 buffers are more than enough */
|
||||||
|
vidix_play.num_frames=vo_doublebuffering?3:1;
|
||||||
vidix_play.src.pitch.y = vidix_play.src.pitch.u = vidix_play.src.pitch.v = 0;
|
vidix_play.src.pitch.y = vidix_play.src.pitch.u = vidix_play.src.pitch.v = 0;
|
||||||
|
|
||||||
if((err=vdlConfigPlayback(vidix_handler,&vidix_play))!=0)
|
if((err=vdlConfigPlayback(vidix_handler,&vidix_play))!=0)
|
||||||
|
|
Loading…
Reference in New Issue