mirror of https://github.com/mpv-player/mpv
10l, avoid getting num_of_buffers=0
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9275 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ad54f0f5af
commit
cdb7ff9cd0
|
@ -611,10 +611,12 @@ static void init_video_buffers(uint8_t *buffer_base,
|
|||
else
|
||||
vo_dga_nr_video_buffers = 1;
|
||||
|
||||
vo_dga_current_video_buffer = 0;
|
||||
|
||||
if(MAX_NR_VIDEO_BUFFERS < vo_dga_nr_video_buffers)
|
||||
if (vo_dga_nr_video_buffers > MAX_NR_VIDEO_BUFFERS)
|
||||
vo_dga_nr_video_buffers = MAX_NR_VIDEO_BUFFERS;
|
||||
if (vo_dga_nr_video_buffers <= 0)
|
||||
vo_dga_nr_video_buffers = 1;
|
||||
|
||||
vo_dga_current_video_buffer = 0;
|
||||
|
||||
for(i = 0; i < vo_dga_nr_video_buffers; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue