summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-17 09:03:45 +0200
committerwm4 <wm4@nowhere>2012-09-18 21:08:20 +0200
commit65adad50ab04520748796b9752dcf61b44dafdd2 (patch)
tree941bdd511a54fd027190e2da55bf810062fe3f49 /mplayer.c
parentf5f0c66d1f42c687f3a1394a828c1f2e0ce8eae1 (diff)
downloadmpv-65adad50ab04520748796b9752dcf61b44dafdd2.tar.bz2
mpv-65adad50ab04520748796b9752dcf61b44dafdd2.tar.xz
mplayer: unbreak OSD with CONFIG_ENCODING undefined
Basically, the encoding code path wanted to set osdlevel=0 as default, while normal playback needs osdlevel=1. For this purpose, osdlevel was set to -1 (i.e. invalid) initially to detect whether the --osdlevel option was explicitly set. When encoding was not configured (CONFIG_ENCODING undefined), the osdlevel value was not set from -1 to 1 properly, and the OSD remained invisible by default. Fix this by getting rid of this logic. It shouldn't be needed, since osdlevel=1 never shows any OSD messages without user interaction. Should this ever change, we could still check whether encoding is in progress, or add another option to allow OSD rendering during encoding.
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/mplayer.c b/mplayer.c
index 784de4b2ee..7fa37641fc 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -4391,22 +4391,11 @@ int main(int argc, char *argv[])
mp_msg(MSGT_VO, MSGL_INFO, "Encoding initialization failed.");
exit_player(mpctx, EXIT_ERROR, 1);
}
- }
-
- if (opts->encode_output.file) {
m_config_set_option0(mpctx->mconfig, "vo", "lavc");
m_config_set_option0(mpctx->mconfig, "ao", "lavc");
m_config_set_option0(mpctx->mconfig, "fixed-vo", "yes");
m_config_set_option0(mpctx->mconfig, "gapless-audio", "yes");
m_config_set_option0(mpctx->mconfig, "untimed", "yes");
-
- // default osd level 0
- if (opts->osd_level < 0)
- m_config_set_option0(mpctx->mconfig, "osdlevel", "0");
- } else {
- // default osd level 1
- if (opts->osd_level < 0)
- m_config_set_option0(mpctx->mconfig, "osdlevel", "1");
}
#endif