diff options
author | pacman <pacman@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-03-20 22:07:30 +0000 |
---|---|---|
committer | pacman <pacman@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-03-20 22:07:30 +0000 |
commit | 6a6fec365625fb32542512d58e7f0740de861dff (patch) | |
tree | 3e065c239fdbd35055d083ac891e6e52c0ef7254 /libvo | |
parent | 12e31cc254f7db9d9d5986cc353377081014358a (diff) | |
download | mpv-6a6fec365625fb32542512d58e7f0740de861dff.tar.bz2 mpv-6a6fec365625fb32542512d58e7f0740de861dff.tar.xz |
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
Diffstat (limited to 'libvo')
-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) { |