summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-29 11:03:53 +0200
committerwm4 <wm4@nowhere>2012-10-16 07:26:31 +0200
commit252ddcc014b7672a4434823fc6275be1b039bd79 (patch)
tree5bd84ef90f84a5b9c5a60d99eae2cedb3321207d /mplayer.c
parente62b3a175016eaf93ef5ead7ea3891bc85327a55 (diff)
downloadmpv-252ddcc014b7672a4434823fc6275be1b039bd79.tar.bz2
mpv-252ddcc014b7672a4434823fc6275be1b039bd79.tar.xz
sub: cleanup: remove vo_osd_probar_type/value global variables
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c6
1 files changed, 3 insertions, 3 deletions
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;
}