diff options
Diffstat (limited to 'libvo/vo_fbdev.c')
-rw-r--r-- | libvo/vo_fbdev.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libvo/vo_fbdev.c b/libvo/vo_fbdev.c index a61fac69c9..8569b34d89 100644 --- a/libvo/vo_fbdev.c +++ b/libvo/vo_fbdev.c @@ -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) { |