mplayer: osd bar depends on VO, not video decoding

The OSD bar wasn't displayed, and instead a fallback message was shown.
This commit is contained in:
wm4 2013-10-02 20:39:26 +02:00
parent d24bf6e349
commit 4da7630824
1 changed files with 1 additions and 1 deletions

View File

@ -1390,7 +1390,7 @@ void set_osd_bar(struct MPContext *mpctx, int type, const char *name,
if (opts->osd_level < 1 || !opts->osd_bar_visible)
return;
if (mpctx->sh_video && opts->term_osd != 1) {
if (mpctx->video_out && opts->term_osd != 1) {
mpctx->osd_visible = mp_time_sec() + opts->osd_duration / 1000.0;
mpctx->osd->progbar_type = type;
mpctx->osd->progbar_value = (val - min) / (max - min);