# HG changeset patch # User pacman # Date 1142892450 0 # Node ID 5075cd9bb6318dd80a81b2e0effd1c3702066600 # Parent 7f055f2fb27fe194eb345eb67ae602ccb1b97656 Don't try to parse fb.modes more than once. Fixes playback of multiple files with mplayer -vm diff -r 7f055f2fb27f -r 5075cd9bb631 libvo/vo_fbdev.c --- a/libvo/vo_fbdev.c Mon Mar 20 21:13:01 2006 +0000 +++ b/libvo/vo_fbdev.c Mon Mar 20 22:07:30 2006 +0000 @@ -162,6 +162,10 @@ 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) {