From 252ddcc014b7672a4434823fc6275be1b039bd79 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 29 Sep 2012 11:03:53 +0200 Subject: sub: cleanup: remove vo_osd_probar_type/value global variables --- mplayer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mplayer.c') diff --git a/mplayer.c b/mplayer.c index 3d4e61c9e2..6fe8c649c4 100644 --- a/mplayer.c +++ b/mplayer.c @@ -1430,7 +1430,7 @@ static mp_osd_msg_t *get_osd_msg(struct MPContext *mpctx) // the difference is greater assume it's wrapped around from below 0 if (mpctx->osd_visible - now > 36000000) { mpctx->osd_visible = 0; - vo_osd_progbar_type = -1; // disable + mpctx->osd->progbar_type = -1; // disable vo_osd_changed(OSDTYPE_PROGBAR); mpctx->osd_function = mpctx->paused ? OSD_PAUSE : OSD_PLAY; } @@ -1490,8 +1490,8 @@ void set_osd_bar(struct MPContext *mpctx, int type, const char *name, if (mpctx->sh_video && opts->term_osd != 1) { mpctx->osd_visible = (GetTimerMS() + 1000) | 1; - vo_osd_progbar_type = type; - vo_osd_progbar_value = 256 * (val - min) / (max - min); + mpctx->osd->progbar_type = type; + mpctx->osd->progbar_value = 256 * (val - min) / (max - min); vo_osd_changed(OSDTYPE_PROGBAR); return; } -- cgit v1.2.3