From 7521aac66509d18666b7737160153986cc1437ac Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Fri, 18 Apr 2008 06:28:47 +0300 Subject: Move global vo_config_count to vo struct Remove the global and Add a corresponding field to the vo struct, plus another which tells whether the LAST config call was successful.The latter value which tells whether the VO should be properly configured at the moment seems a better match for the semantics actually needed in most places where the old value was used. The 'count' field with the old semantics is not currently used by anything, but I'm leaving it there for vo drivers which would need those semantics if converted to use the struct. Existing uses of the global outside old vo drivers are either converted to use the struct field or moved inside the vo_xyz() calls (instead of "if (vo_config_count) vo_flip_page(..." just call vo_flip_page which will now do nothing if not configured). The removal of the check in mpcommon.c/update_subtitles() is less trivial than the others, but I think it shouldn't cause problems. --- mencoder.c | 1 - 1 file changed, 1 deletion(-) (limited to 'mencoder.c') diff --git a/mencoder.c b/mencoder.c index 873a4af734..8c429fa615 100644 --- a/mencoder.c +++ b/mencoder.c @@ -97,7 +97,6 @@ MPOpts opts; int vo_doublebuffering=0; int vo_directrendering=0; -int vo_config_count=1; int forced_subs_only=0; //-------------------------- -- cgit v1.2.3