From 6a6fec365625fb32542512d58e7f0740de861dff Mon Sep 17 00:00:00 2001 From: pacman Date: Mon, 20 Mar 2006 22:07:30 +0000 Subject: [PATCH] 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 --- libvo/vo_fbdev.c | 4 ++++ 1 file changed, 4 insertions(+) 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) {