Don't try to parse fb.modes more than once. Fixes playback of multiple files

with mplayer -vm


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17901 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pacman 2006-03-20 22:07:30 +00:00
parent 12e31cc254
commit 6a6fec3656
1 changed files with 4 additions and 0 deletions

View File

@ -162,6 +162,10 @@ static int parse_fbmode_cfg(char *cfgfile)
int in_mode_def = 0;
int tmp, i;
/* If called more than once, reuse parsed data */
if (nr_modes)
return nr_modes;
mp_msg(MSGT_VO, MSGL_V, "Reading %s: ", cfgfile);
if ((fp = fopen(cfgfile, "r")) == NULL) {