diff options
author | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-18 06:28:47 +0300 |
---|---|---|
committer | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-23 13:46:39 +0300 |
commit | 7521aac66509d18666b7737160153986cc1437ac (patch) | |
tree | 753deecae845a29694223461e6d3a397137966b1 /libvo/video_out.h | |
parent | 26039a38e3d5a2305e0ec93481df07c2717aa06d (diff) | |
download | mpv-7521aac66509d18666b7737160153986cc1437ac.tar.bz2 mpv-7521aac66509d18666b7737160153986cc1437ac.tar.xz |
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.
Diffstat (limited to 'libvo/video_out.h')
-rw-r--r-- | libvo/video_out.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libvo/video_out.h b/libvo/video_out.h index c1ba46e59f..1870af17d3 100644 --- a/libvo/video_out.h +++ b/libvo/video_out.h @@ -207,6 +207,8 @@ struct vo_old_functions { }; struct vo { + int config_ok; // Last config call was successful? + int config_count; // Total number of successful config calls const struct vo_driver *driver; void *priv; struct MPOpts *opts; @@ -233,8 +235,6 @@ extern const struct vo_driver *video_out_drivers[]; extern int vo_flags; -extern int vo_config_count; - extern int xinerama_screen; extern int xinerama_x; extern int xinerama_y; |